Reputation: 12902
I can't get VS2010 to build a WIX project for x64 - meaning I can add the platform, but it doesn't build it.
Steps to reproduce:
Results: Platform has reverted to x86.
Expected Results: Platform is still set to x64.
Am I missing something? I can't be the only person running into this?
Upvotes: 7
Views: 3523
Reputation: 86
WiX definitely supports x64! I got the same issue and that seems to be somehow a crazy issue as I also got it working for another solution for x86 and x64. So I compared the two solution files and figured out what was going wrong with the one not working.
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{HERE-IS-STANDING-A-GUID}.Debug|x64.ActiveCfg = Release|x86
{HERE-IS-STANDING-A-GUID}.Debug|x64.Build.0 = Release|x86
{HERE-IS-STANDING-A-GUID}.Debug|x86.ActiveCfg = Debug|x86
{HERE-IS-STANDING-A-GUID}.Debug|x86.Build.0 = Debug|x86
{HERE-IS-STANDING-A-GUID}.Release|x64.ActiveCfg = Release|x86
{HERE-IS-STANDING-A-GUID}.Release|x64.Build.0 = Release|x86
{HERE-IS-STANDING-A-GUID}.Release|x86.ActiveCfg = Release|x86
{HERE-IS-STANDING-A-GUID}.Release|x86.Build.0 = Release|x86
EndGlobalSection
This is a generated nonworking one. To make it work, I replaced the first four strings behind the "=" and played a bit with doing an x86 and x64 build. That worked for me.
Here is the same but working code:
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{HERE-IS-STANDING-A-GUID}.Debug|x64.ActiveCfg = Debug|x64
{HERE-IS-STANDING-A-GUID}.Debug|x64.Build.0 = Debug|x64
{HERE-IS-STANDING-A-GUID}.Debug|x86.ActiveCfg = Debug|x86
{HERE-IS-STANDING-A-GUID}.Debug|x86.Build.0 = Debug|x86
{HERE-IS-STANDING-A-GUID}.Release|x64.ActiveCfg = Release|x64
{HERE-IS-STANDING-A-GUID}.Release|x64.Build.0 = Release|x64
{HERE-IS-STANDING-A-GUID}.Release|x86.ActiveCfg = Release|x86
{HERE-IS-STANDING-A-GUID}.Release|x86.Build.0 = Release|x86
EndGlobalSection
Hope that works for you as well
Upvotes: 6
Reputation: 5465
I had the same problem just a few minutes ago in VS2010. I solved the problem by doing this:
Strange but it works :-)
Upvotes: 3