Visual Studio build not using Active Solution Configuration with WiX Project

Viewed 1741

I have a VS2012 Solution with 3 build configurations:

  • Debug
  • Release
  • "Mine"

In the Configuration Manager, I have some .NET projects with options based on the Mine configuration. All ok.

I have a WiX installer project which in the Configuration Manager, appears to only support Release and Debug as options - I cannot add Mine as an option there.

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

Generally this would not be a problem, however I have a BeforeBuild action which is using $(Configuration). And this is pulling in Release instead of my desired and selected "Mine".

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

Thanks

1 Answers
Related