2011-03-07 62 views
0

VCBuild無法加載屬性表。我如何指定$(SolutionDir)?VCBuild:無法加載屬性表

>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

this,這是不可能的建設單個項目時,使用$(SolutionDir)。要構建單個項目,請使用devenv。

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

編輯This是一個更好的答案。