I am currently trying to create a wix installer, and found this article stating that WiX 3.8 cannot grab the references added in each projects files using heap. Is this still true for 3.10?
I do know how to add reference dlls manually but was really hoping I can use some automation.
I did find this stack overflow question answering similar question but the HeatProject approach seems to be not working for me.
<Target Name="BeforeBuild">
<HeatProject ToolPath="$(WixToolPath)" AutogenerateGuids="true" OutputFile="OutputFile.wxs" SuppressFragments="true" Project="ReferencedProject.csproj" ProjectOutputGroups="Binaries" />
</Target>
This code snippet successfully generated OutputFile.wxs. However, when I removed the Component with exe File from manual wxs, the end-result msi did not install the .exe (along with all the references)
EDIT :
Content of OutputFiles.wxs is following
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<DirectoryRef Id="ReferenceProject.Binaries">
<Component Id="cmp7C475BDFC8ADED831D737FA819051E2F" Guid="*">
<File Id="filC6ECF306B200636DD5F3BA1DCBDA0F15" Source="$(var.ReferenceProject.TargetDir)\ReferenceProject.exe" />
</Component>
<Component Id="cmp4449C9C84D65952451BBDF1488B8BE48" Guid="*">
<File Id="fil72052E64CE55C9B2516044DF15A1F318" Source="$(var.ReferenceProject.TargetDir)\ReferenceProject.exe.config" />
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<ComponentGroup Id="ReferenceProject.Binaries">
<ComponentRef Id="cmp7C475BDFC8ADED831D737FA819051E2F" />
<ComponentRef Id="cmp4449C9C84D65952451BBDF1488B8BE48" />
</ComponentGroup>
</Fragment>
</Wix>
On my main wxs, I do have a Feature that is installed with a line
<ComponentGroupRef Id="ReferenceProject.Binaries"/>
And yet the exe is not included (also referenced libraries)