Deploying C # 7 code on VSTS

I have a project in which I use C # 7 features. It builds fine locally, but when I create Visual Studio Team Services, I get errors. All errors point to this one project, and they are all related to C # 7:

Identifier expected Invalid expression term 'int' Syntax error, ',' expected Syntax error, '>' expected ) expected ; expected 

The project targets .NET 4.6.1 and refers to Microsoft.CodeDom.Providers.DotNetCompilerPlatform 1.0.3 and Micosoft.Net.Compilers 2.0.1.

How can I make a project build on VSTS?

+5
source share
1 answer

To take advantage of C # 7, you need to install the assembly to use the Hosted VS2017 queue.

Hosting Agents

+5
source

Source: https://habr.com/ru/post/1266433/


All Articles