-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Milestone
Description
Version used: 2.1
Use TFS 2013 build to build our solution and would like to use C#7. There was no problem using C#6 and .NET compilers 1.x.
Expected Behavior: Build successfully
Actual Behavior: Fails with
...\Sources\packages\Microsoft.Net.Compilers.2.1.0\build\Microsoft.Net.Compilers.props(13,5): error : Microsoft.Net.Compilers is only supported on MSBuild v14.0 and above [....\SubSystems-Main\Sources\Hexcel.Services.Shared\Hexcel.Services.Shared.csproj]
Also confused by this statement on the Nuget page:
.Net Compilers package. Referencing this package will cause the project to be built using the specific version of the C# and Visual Basic compilers contained in the package, as opposed to any system installed version.
This package can be used to compile code targeting any platform, but can only be run using the desktop .NET 4.6+ Full Framework.
Is it not possible to use .NET compilers 2 via TFS Build?
teyc, ChristophHornung, Mafii and Mamikel