VCBuild: Unable to load Property sheet

1.1k Views Asked by At

VCBuild is failing to load a property sheet. How can I specify $(SolutionDir)?

>vcbuild /logfile:log.txt /rebuild "./Project1/Project1.vcproj"

The following error has occurred during XML parsing:
File: ./Project1/Project1.vcproj
Line: 26
Column: 4
Error Message:
Property sheet file '$(SolutionDir)Property Sheets\Project1.vsprops' was not found or failed to load.
The file './Project1/Project1.vcproj' has failed to load.
1

There are 1 best solutions below

0
On BEST ANSWER

According to this, it's not possible to use the $(SolutionDir) when building individual projects. To build individual projects, use devenv.

devenv "Solution1.sln" /project "Project1.vcproj" /rebuild Debug

Edit: This is a better answer.