Hello,

I'm trying to upgrade our TFS build (MSBuild) projects to use the new WiX 3.0 
stuff.  Unfortunately, I'm having a devil of a time passing all of the 
preprocessor variables to the WiX project from MSBuild.  My understanding is 
that I should be using the DefineConstants property for passing them in, but 
unfortunately it is only recognizing the first property passed in.

Here is a snippet from the build project invoking the WiX Project:

    <PropertyGroup>
      <DefineConstants>COREDROP=$(CoreDrop); DOCDROP=\\rpd-drops\Documents; 
RAPDROP=$(DropLocation)\$(BuildNumber)\; 
LOCDROP=$(DropLocation)\$(BuildNumber)\; 
DISTRIBUTEDROP=\\rpd-drops\Distribute\;</DefineConstants>
    </PropertyGroup>


  <MSBuild Projects="$(SolutionRoot)\Build\RAPIDCore.sln"
           
Properties="DefineConstants=$(DefineConstants);OutDir=$(SolutionRoot)\Build\;" >
  </MSBuild>

I've tried passing them in directly in the properties, creating the 
DefineConstants property by using a CreateProperty instead, etc, etc.  No 
matter what I try, only the first parameter is recognized (or worse :)).  I 
have even tried passed in each one individually, still the same behavior...

However, if I look at the build log, it appears all parameters are being passed 
and set correctly...just aren't being recognized by WiX :(:

Task "MSBuild"
  Global Properties:
    DefineConstants=DOCDROP=\\rpd-drops\Documents
    COREDROP=\\rpd-drops\devdrop\RAPIDv1.0\1.3.0012.00
    RAPDROP=\\rpd-drops\DevDrop\PkgSrc\SQLRAP\2.5.0026.00\
    LOCDROP=\\rpd-drops\DevDrop\PkgSrc\SQLRAP\2.5.0026.00\
    DISTRIBUTEDROP=\\rpd-drops\Distribute\

I think I could get this working if I just called it from the command line and 
passed in the parameters that way, but I wanted to use the MSBuild task 
integration :(.

Does anyone have any pointers or tips?  I've searched all over the internet, 
but I haven't been able to find that works/directly addresses this issues.  Any 
ideas?  Thanks.

Thanks,
DoranW
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to