I not sure this is the best way, but I manually added the following to my
solution and project files.
I've removed all of the other msbuild properties that are not relevant:
The project file effectively defines 4 different configurations as property
groups. The property group with no
condition sets the default one to x86.
The solution file just matches this up. You can then simply select the
Platform as x86 or x64 in Vis Studio and build. This was done with VS2008.
One thing I haven't fully resolved is if I am not on the default configuration,
I can't use Ctrl+Shift+B to build.
PROJ FILE
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<InstallerPlatform>x86</InstallerPlatform>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<InstallerPlatform>x86</InstallerPlatform>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
<InstallerPlatform>x64</InstallerPlatform>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
<InstallerPlatform>x64</InstallerPlatform>
</PropertyGroup>
Solution:
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{91B138DC-97BE-4F52-8EBC-595B5297B146}.Debug|x64.ActiveCfg =
Debug|x64
{91B138DC-97BE-4F52-8EBC-595B5297B146}.Debug|x86.ActiveCfg =
Debug|x86
{91B138DC-97BE-4F52-8EBC-595B5297B146}.Debug|x86.Build.0 =
Debug|x86
{91B138DC-97BE-4F52-8EBC-595B5297B146}.Release|x64.ActiveCfg =
Release|x64
{91B138DC-97BE-4F52-8EBC-595B5297B146}.Release|x86.ActiveCfg =
Release|x86
{91B138DC-97BE-4F52-8EBC-595B5297B146}.Release|x86.Build.0 =
Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Michael
-----Original Message-----
From: Rune Moberg [mailto:[email protected]]
Sent: Tuesday, 1 February 2011 2:24 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] one .wixproj -- two platforms
On Mon, Jan 31, 2011 at 3:45 PM, Pally Sandher <[email protected]> wrote:
> Rune take a look at the -arch parameter for candle as it sounds like
> it'll do exactly what you need. Bob A mentions it in on his blog @
> http://www.joyofsetup.com/2010/05/14/working-hard-or-hardly-working/
When using plain old msbuild to build my solution file, how do I
influence the command line for candle.exe?
I found this example which looks pretty much like what I have already tried:
http://insomniacgeek.com/how-to-target-32bit-and-64bit-a-net-applications-with-wix-and-separate-msi-packages/
"The value you choose here will be transferred to the Platform
variable in WiX" is the part I'm having trouble with. The Build
Configuration Manager refuses to let me specify "x64" as a target for
my .wixproj. Hence the "-dPlatform=x86" parameter never changes.
--
Rune
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users