参数的写法:"/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

相关文章:

  • 2021-11-03
  • 2021-10-06
  • 2021-10-19
  • 2021-07-05
  • 2018-05-17
  • 2021-11-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2021-10-10
  • 2022-12-23
  • 2022-02-07
相关资源
相似解决方案