A note to myself, next time I try to do view compilation in msbulid
and see exception
Can’t find the valid AspnetCompilerPath
I should either install VS2013 on my build server. Or choose a different version of msbuild.exe
:
C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild.exe
.
The problem is caused by version mis-match. New msbuild is part of Visual Studio 2013 and not part of .Net framework itself. And by default your PATH
variable points to .Net folders where older msbuild is found. So you in your scripts you need to explicitly specify what msbuild you need to use.