We now have an app project that we want to compile and then include in our installer. To do that, we need to do at least two things (among others):
The best way to accomplish these with WiX is to use a project reference -- specifically, a reference from the package project to the app project. With a project reference, Visual Studio (and MSBuild in your CI build system) will build the projects in the right order: app first, then package.
Then the WiX MSBuild targets kick in and do something special to make it easy to pick up the output from the app project. We'll talk about that later this sprint.
To add a project reference in Visual Studio:
Dependencies
under the WixTutorialPackage
package in Solution Explorer.Add Project Reference
.App
project and choose OK
.