Visual Studio does not use Active Solution configuration with WiX project

I have a VS2012 solution with 3 build configurations:

  • Debugging
  • Let go
  • "Mine"

In Configuration Manager, I have some .NET projects with parameters based on Mine configuration. Everything is fine.

I have a WiX installation project which, in Configuration Manager, apparently only supports Release and Debug as parameters - I cannot add Mine as an option there.

As a result, when I build my WiX project, while every dependent C # project uses Mine configuration, the WiX project uses Release.

This is usually not a problem, however I have a BeforeBuild action that uses $ (Configuration). And it pulls in Release instead of my desired and selected "Mine."

Any ideas how I can pass Mine from MSBuild from a project that doesn't include it? Is there another $ (ActiveConfiguration) or similar?

thanks

+6
source share
1 answer

I believe this is a bug in WiX. If you edit the wxproj file, you will see that there is no entry for "Mine". To fix such problems, you need to manually edit the wixproj file and copy the corresponding section for the "Release" mode and duplicate it and change it to "Mine".

Some links: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Adding-deleting-project-configurations-td7582655.html

http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Changing-configuration-and-or-platform-in-solution-Configuration-Manger-does-nothing-td7588992.html

+6
source

All Articles