Passing multiple values to Wix DefineConstants property with MSBuild

后端 未结 12 1972
萌比男神i
萌比男神i 2020-12-08 05:42

I\'m currently integrating my Wix projects in MSBuild. It is necessary for me to pass multiple values to the Wix project. One value will work (ProductVersion in the sample b

12条回答
  •  既然无缘
    2020-12-08 05:58

    A workaround hack.

    Assumptions:

    • SomeEnumValue's possible values are EnumValue1 and EnumValue2

    In MSBuild:

    Debug;use_$(SomeEnumValue)
    

    In WiX:

    
      ...
    
      ...
    
    

提交回复
热议问题