0

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.
4

1 回答 1

1

据此,构建单个项目时无法使用 $(SolutionDir) 。要构建单个项目,请使用 devenv。

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

编辑是一个更好的答案。

于 2011-03-07T16:34:24.870 回答