In Visual C#, how to disable WiX project? (makes build too slow)

c#, visual-studio-2010, wix

Solution

Yes, go to `Build` -> `Configuration Manager`

Here you can uncheck `Build` for your WiX project.

This way the project will not build. You can also choose to not build it in the `Debug` configuration but to have it build when doing a `Release` build.

Problem

I am using Visual C# 2010. I used to have a WiX script independently from Visual C#. But recently I decided to integrate it as a WiX project inside Visual C#. PROBLEM: Visual C# is now much slower when building. Whenever I want to launch Debug it takes forever, and when there is a compilation error all sorts of WiX errors appear too. Can I disable/close the WiX Project, and only enable it when I need it? (like in Eclipse)

Original source