参数的写法:"/p:DefineConstants=MY_PREPROC_FLAG YET_ANOTHER_FLAG"
注意,在使用 MSBuild 时,会出现C#项目中设置的输出路径无效的问题,这是要在MSBuild参数中加入:
<arg value="/p:OutputPath=YourOUtPutPath" />
参考:http://www.linqinpark.net/2009/01/13/MSBuildWithMultipleDefineConstants.aspx
继续阅读与本文标签相同的文章
上一篇 :
在DNN模块开发中使用jQuery
-
Error &ldquoUnable to copy the file xxx from the project template to the project. Can't find the file xxxx&rdquo when create VS template
2026-05-25栏目: 教程
-
桌面重置,所有的东西都消失了怎么办?
2026-05-25栏目: 教程
-
微软近期Open的职位
2026-05-25栏目: 教程
-
Some key capabilities I want to develop
2026-05-25栏目: 教程
-
微软MSIT部门Open职位
2026-05-25栏目: 教程
