After much trouble I have a heat.exe command string that should run and put the files of a folder into a WXS file.
It looks like this
heat dir "$(var.SolutionDir)Web\obj\$(var.MyProject.Configuration)Package" -gg -g1 -cg PACKAGEFILES sreg -dr DEPLOYFOLDER -var "$(var.SolutionDir)Web\obj\$(var.MyProject.Configuration)Package" -out "$(var.SolutionDir)WebInstaller\PackageFragment.wxs"
I used this to get it: http://weblogs.sqlteam.com/mladenp/archive/2010/02/23/WiX-3-Tutorial-Generating-filedirectory-fragments-with-Heat.exe.aspx
However when I try to copy that into my pre-build-event box under "Properties->Build Events" for my WIX project in VS2010 - VS2010 crashes and I cannot load my project until I delete the command directly from the project file xml code.
I now have two questions:
- Is this command string correct?
- Why does my project crash like that?
Thank you all in advance.