The PropertyGroup code is as follows: <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> <OutputPath>bin\$(Configuration)\</OutputPath> <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> <DefineConstants>WiXProductName=BeamGage Professional;WiXProductVersion=$(WiXVersion);</DefineConstants> </PropertyGroup>
I changed <IntermediateOutputPath> to "obj\IntermediateOutputPath". The command line in the build log now specifies "-out obj\IntermediateOutputPath\module.wixobj". That proves that the PropertyGroup containing DefineConstants is being executed. I should be seeing "-dWixProductName=" and "-dWixProductVersion=" on the command line. Any idea why the DefineConstants is not being passed to candle? -----Original Message----- From: Kurt Jensen [mailto:kurt.jen...@ophir-spiricon.com] Sent: Monday, May 17, 2010 3:05 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] msbuild command line parameters I'm trying to build my wixproj in msbuild. The solution ConfigurationToBuild is "Release|Any CPU". Inside of my configuration the wixproj is built as "Release|x86". In my wixproj I have a 'Release|x86' PropertyGroup that includes <DefineConstants>. But none of the DefineConstants are being included on the command line to candle during the build. The PropertyGroup and DefineConstants work fine in the IDE. In the build log I verified that the command line contains -dConfiguration=Release and -dPlatform=x86. Any idea how to get the wixproj DefineConstants passed to candle in msbuild? Kurt Jensen ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.clearswift.com ********************************************************************** ------------------------------------------------------------------------ ------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users