title: Passing multiple values to Wix DefineConstants property with MSBuild
body: <p>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 below).</p>
  
  <pre><code>&lt;Target Name="BuildWixSetups"&gt;
      &lt;MSBuild Condition="'%(WixSetups.Identity)'!=''"
                  Projects="%(WixSetups.Identity)"
                  Targets="Rebuild" Properties="Configuration=Release;OutputPath=$(OutDir);DefineConstants=ProductVersion=%(WixSetups.ISVersion)" ContinueOnError="true"/&gt;
  &lt;/Target&gt;
  </code></pre>
  
  <p>However, how do I pass multiple values to the DefineConstants key? I've tried all the 'logical' separators (space, comma, semi-colon, pipe-symbol), but this doesn't work. </p>
  
  <p>Has someone else come across this problem?</p>
  
  <p>Solutions that don't work:</p>
  
  <ol>
  <li>Trying to add a DefineConstants element does not work because DefineConstants needs to be expressed within the Properties attribute.</li>
  </ol>