-
Notifications
You must be signed in to change notification settings - Fork 0
HeatWave does not include All output files from the referenced project, only the file source #75
Description
HeatWave Version
1.0.4.5
Visual Studio Version
17.13.2
Repro Steps
- Follow the WixToolset Tutorial paying attention to Sprint 2 Step: Replace the placeholder component.
- Continue to Sprint 3 Step: Installing the app (if you dare) you need to dare.
Actual Result
The output from the App project in bin\debug includes an app.exe.config file as well as a .pdb file. Neither file is included in the msi and neither is installed alongside the App.exe as expected.
This would seem contrary to what you might expect from the tutorial documentation:
"The WiX MSBuild targets, while not themselves sentient, reflect the thoughts of the WiX developers, including the thought that it should be simple to package the files from referenced projects. It does so by generating bind paths for the output of every referenced project. Bind paths are paths that WiX searches for files being packaged. Because the bind path includes the directory, all we need to do is reference the file name itself:"
I would infer from this that because I've referenced the App.exe file WiX will locate the directory where this file is output to, create a bind path for it and then use that bind path as a location to search for other files and directories to include in the package.
I first noticed this problem in my own project that I'm trying to package - the main referenced file is packaged but none of the supporting dll's or directories are packaged. I then went back to Tutorial to find my mistake but at the moment I'm at a loss to see what I've missed as both projects are exhibiting the same behaviour. The App from the tutorial installs and works but probably because it doesn't need the app.exe.config my production app doesn't because it needs the supporting dlls to work.
One additional step that's not in the Tutorial, is that I followed the workround for MSB4057 and added the following to the wixproj files of my tutorial solution and my production solution.
<Target Name="CollectSuggestedVisualStudioComponentIds" />
The instructions aren't exact but you I don't think you can go too wrong with the bottom of the file as if you get it wrong then you get errors and the project will not load.
Expected Result
I would expect to see the entire contents of the directory containing the referenced File source, packaged into the msi and installed by the MSI. Not just the single referenced file.