String Interpolation will not build on TeamCity

前端 未结 1 1625
一向
一向 2021-02-20 08:06

For an old project I support, I\'ve been performing some modernization. That has included various things: bumping the .NET Framework up to 4.6, and other upgrades. One of the

1条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-20 08:21

    I feel vindicated; the funny path/version was in fact indicative of the true problem: the MSBuild.exe that was being ran was not the one installed by VS2015.

    As I read from here, the version of MSBuild.exe that is found in C:\Windows\Microsoft.NET\Framework\v4.0.30319 is actually a pre-C#6 version; for some reason, installing Visual Studio 2015 does not alter that installation!

    Instead you should point your MSBuild.exe call to the copy stored at C:\Program Files (x86)\MSBuild\14.0\Bin to be compiling against the latest C# version, as installed by VS2015.

    0 讨论(0)
提交回复
热议问题