Scenario
- Solution that has a VS2010 extension in it (.NET 4 Class library, with a WPF UI)
- It builds fine inside visual studio
- On the same machine when I attempt to build it via command line (as part of a build script)
- Fails when using this command to attempt to build it:
msbuild JsExt.sln /t:Build /p:Configuration=Debug /p:OutDir=..\..\Binaries
- Update
- To
MSBuild
Adding/property:VsSDKInstall="C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\VSSDK"
leads to this exception...
- To
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.
Extra info
- Visual Studio 2010 SDK SP1 is installed
- The path to and file
Microsoft.VsSDK.Common.targets
does exist. - I'm running from an
x86
console and PowerShell window andvcvarsall.bat (x86)
are loaded - I'm not sure what the
tmp_proj
is about. - It's a WPF User Interface, is there something I'm missing to compile something with WPF/XAML via MSBuild?
- There is nothing pre/post build events of the CSProj file that is the extension.
- Build platform target is
Any CPU
- I have other solutions/projects working well with the same
MSBuild
command. - Setting
/v:diag
doesn't offer much more information on the errors.
Any ideas, what am I missing, what's next to debug?