.net - msbuild, defining Conditional Compilation Symbols -


I'm probably just blind, but is there a command line to specify conditional compilation symbols in MSBUILD?

I currently place this line in my written script:

  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 add a condition In Visual Studio, I can go to project properties => build => conditional compilation symbols, but I have not seen this option for MSBILD?

Bonus Karma If you know that I can already override all the symbols altogether, it is specified in .csproj files that only entered the condition from my buildscript goes.

Did you see? (Most information is in the final post)

  / p: defined resource = "MYSYMBOL1; MYSYMBOL2"  

Comments