Reputation: 4216
msbuild JsExt.sln /t:Build /p:Configuration=Debug /p:OutDir=..\..\Binaries
MSBuild
Adding /property:VsSDKInstall="C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\VSSDK"
leads to this exception...The "VSCTCompiler" task failed unexpectedly. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\VSSDK\Microsoft.VsSDK.Common.targets(74,5): error MSB4018: System.ArgumentNullException: Value cannot be null.
Microsoft.VsSDK.Common.targets
does exist.x86
console and PowerShell window and vcvarsall.bat (x86)
are loadedtmp_proj
is about.Any CPU
MSBuild
command./v:diag
doesn't offer much more information on the errors.Any ideas, what am I missing, what's next to debug?
Upvotes: 3
Views: 2373
Reputation: 329
Is the VSSDKInstall env variable set / showing up in your console?
VSSDK100Install=C:\Program Files (x86)\Microsoft Visual Studio 2010 SDK SP1\
If so, then add "/v:diag" to your cmd line to see what that turns up.
Take a look at the following blog post - step #3 sounds like your original issue, and step #4 explains the subsequent VSCTCompiler issue that you just encountered.
Upvotes: 2