msbuild, defining Conditional Compilation Symbols

前端 未结 4 2162
没有蜡笔的小新
没有蜡笔的小新 2020-11-29 02:59

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

I currently have this Line in my buildscript:

         


        
4条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-29 03:12

    /p:DefineConstants is an all or nothing deal.

    If you just want to turn off trace symbol, you can't just do it with: msbuild /p:DefineTrace=false

    You have to define something to override all the symbols already defined: msbuild /p:DefineConstants="RANDOM-SYMBOL"

    Thanks Michael Stum point this hidden rule out I have also wrote a blog about it --- dead link

提交回复
热议问题