How do I enable C# 7 builds in Team Foundation Server 2015?

前端 未结 2 981
不思量自难忘°
不思量自难忘° 2021-01-13 05:25

We have Team Foundation Server (TFS) 2015 installed on-premises. We would like to use Visual Studio 2017 to take advantage of the latest C# language features. We are not rea

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-13 05:57

    Just install latest version of Microsoft.Net.Compilers nugget package

    https://www.nuget.org/packages/Microsoft.Net.Compilers >> .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.

提交回复
热议问题