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
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.