VCBuild:无法加载属性表

时间:2011-03-07 15:44:21

标签: build vcproj vcbuild

VCBuild无法加载属性表。如何指定$(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 个答案:

答案 0 :(得分:1)

根据this,在构建单个项目时不可能使用$(SolutionDir)。要构建单个项目,请使用devenv。

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

修改This是一个更好的答案。