I'm using the lastest version of Wix 3.5 and I'm trying to generate a fragment file using heat.exe. The command line is :
"%WIX%\bin\heat.exe" project "MyProj.csproj" -pog Binaries -pog Content -suid -directoryid
INSTALLLOCATION -ag -template fragment -out "Files.wxs"
The prolem I'm having is that the assemblies my project is depending uppon are missing from the generated file. Is this the intended behaviour ? How can I add them ?
Should I use the dir
harvesting type ?! How to remove *.pdb or *.vshost.exe then ?
I want to use it with CI Server (TeamCity)
edit:
I tried -pog Satellites
and doesn't work either
Enter Heat.exe. Heat is a command line utility to harvest a file, directory, Visual Studio project, IIS website or performance counters. You might ask what harvesting means? Harvesting is converting a source (file, directory, …) into a component structure saved in a WiX fragment (a wxs) file.
The Visual Studio WiX toolset allows you to easily create WiX projects, edit WiX files using IntelliSense, and compile/link your project within the Visual Studio IDE. For WiX project types, see WiX Project Types.
Unfortunately this is a known issue with WiX:
Heat doesn't harvest referenced assemblies
From the bug comments, it looks like support will be added in WiX 4.0.
I know this is an old question, but this thread might contain some ideas for possible solutions: How to add a whole directory or project output to WiX package
One of the tools mentioned, Paraffin 3.1, has various command line switches that should allow you to exclude the files that are not relevant. http://www.wintellect.com/CS/blogs/jrobbins/archive/2009/06/28/paraffin3-1-new-and-improved.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With