我可能只是瞎了眼,但在MSBUILD中是否有指定条件编译符号的命令行?
我目前在构建脚本中有这样一行:
SET MSBUILD=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe
SET CONFIG=Debug
%MSBUILD% /p:Configuration=%CONFIG% /p:OutputPath=..\..\output source\MyProject\MyProject.csproj
And I'd like to add a condition. In Visual Studio, i can just go into Project Properties => Build => Conditional compilation symbols, but I have not seen that option for msbuild?
如果您知道我是否可以完全覆盖.csproj文件中已经指定的所有符号,以确保只有来self 的Buildscript的条件条件进入,则会有额外的报应.