visual studio 2010 - Can you include a generated file to a WiX project without adding it as an existing file -


we use heat build file our web project installer. want know if there way can have file included in compilation, not included in project.

the reason need not check file in on our source control, have build when build wixproj. otherwise have hijack/checkout file in order reliably build project.

if using msbuild , .wixproj build .msi need output heat listed in compile item in .wixproj. if file not included not compiled final .msi.

fortunately, msbuild provides quite few options dynamically include items. example, have custom target in .wixproj runs heat , adds output

 <target name='runheat'>      <exec command='heat.exe param param param -o path\to\output.wxs' />      <itemgroup>          <compile include='path\to\output.wxs' />      </itemgroup>  </target> 

now if runheat target run before compile target in wix.targets compile item generated in runheat included in compile target. given flexibility of msbuild there dozen other ways accomplish task.

hope helps , luck!


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -