title: Best way to create a wix fragment file based on User-defined directories to be used in MSBUILD
body: <p>In the spirit of this question by Si here: <a href="https://stackoverflow.com/questions/471424/wix-tricks-and-best-practices">WiX tricks and tips</a>.  I am trying to determine the best way to get create wix fragments based on a directories.  File harvesting, so to speak.  For example under the bin\release folder I could have many different folders plus files that I want to capture very easily in fragments.  I have been doing this by typing them or using wixedit.</p>
  
  <p>Please note I haven't tried anything just done the reasearch here:
  A)I read a little bit on heat.(<a href="http://installing.blogspot.com/2006/04/heatexe-making-setup-easier.html" rel="nofollow noreferrer">http://installing.blogspot.com/2006/04/heatexe-making-setup-easier.html</a>)  I am not sure though about running it from msbuild?
  B)I found this blog article from Newagesolution which discusses using t4 script: <a href="http://blog.newagesolution.net/2008/06/how-to-use-msbuild-and-wix-to-msi.html" rel="nofollow noreferrer">http://blog.newagesolution.net/2008/06/how-to-use-msbuild-and-wix-to-msi.html</a></p>
  
  <p>I would like to know what others are doing to solve this.</p>
  
  <p>Regards, Brian</p>