Using C# 7.1 with MSBuild

后端 未结 6 1188
粉色の甜心
粉色の甜心 2020-12-16 10:44

To use the new C# 7.1 language features with Visual Studio 2017, you add the setting latest to your project file(s).

6条回答
  •  长情又很酷
    2020-12-16 11:24

    In case you land here because you get the error as the OP mentioned, running msbuild via command line (e.g. from a build agent such as jenkins), the solution may be as easy as to upgrade Microsoft Build Tools 2015.

    You can do that via choco install microsoft-build-tools or manually via the official Microsoft Build Tools 2015 or by updating your Visual Studio 2017 installation.

提交回复
热议问题