I setup a new computer and installed VS2015. Compiling the project I am currently work on results in some invalid code (ILSpy creates uncompilable sources). It worked fine i
I'm leaving this answer here in case it helps anyone else, however it hasn't helped the original poster, as according to @user1029883 it doesn't work when VS2015 is installed with the 12.0 Build Tools (see @alexandrul's comment below) instead of multiple versions of Visual Studio: sorry.
Unfortunately, there doesn't seem to be a straightforward way to do this. There is, however, a fiddly way:
MSBUILDLEGACYDEFAULTTOOLSVERSION
ToolsVersion
attribute in the top-level Project
element in all your project files is set to the desired ToolsVersion
.See the Overriding ToolsVersion Settings page on MSDN