It's going to be easier for me to post if I use the real project names. I'm building Omnyx.Scanner from it's project directory and I'm going to try to solve all the resulting problems...
Quote:x:\Omnyx.Scanner> msbuild
The first thing that fails is the CLI project dependency.
Quote:x:\MacroSegmentationCLI\MacroSegmentationCLI.vcxproj(3,3): error MSB4019: The imported project "D:\Native.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
MSBuild cannot even load the project because there is an import at the top of the file that uses $(SolutionDir). Native.targets provides some build output paths and tasks for the native projects... it's located two directories up, at the solution root.
Quote:<Import Project="$(SolutionDir)\Native.targets" />
That project depended on another native project with the same import. I changed them both to use a relative path and msbuild got past that error.
Quote:<Import Project="..\..\Native.targets" />
However, now it's complaining about a configuration/platform combination of Debug|Win32...
Quote:C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(283,5): error MSB8013: This project doesn't contain the Configuration and Platform combination of Debug|Win32. [x:\MacroSegmentation\MacroSegmentation.vcxproj]
I'm not using that platform anywhere! Is this an msbuild default? These projects also only specify Debug and Release|x64. (bonus: NCrunch is now reporting the same error)Bonus info: If I override the msbuild command, providing the platform switch, the single project builds. I feel that if I can overcome this default platform, I could get NCrunch to work.
Quote:x:\Omnyx.Scanner> msbuild /property:Platform="x64"