Passing multiple values to Wix DefineConstants property with MSBuild

后端 未结 12 1916
萌比男神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 06:17

    The following works for me when using an MSBuild task to build a Visual Studio Solution:

    
    

    The trick is using %3b to escape the ; separator inside the DefineConstants value. I'm not sure if this will work for the = too. They may need to be escaped as %3d or it may not work at all...

    There's also a TargetAndPropertyListSeparators attribute on the MSBuild element. I can't find any documentation for it but it might be possible to use it to set a separator other than ;.

提交回复
热议问题