title: WiX adding .net files to GAC
body: <p>I have a problem copying assembly files to <code>GAC</code> using <code>msi installer file.</code> My project requires me to add some <code>.netmodule</code> files along with a <code>.dll</code> file to GAC. But using the <code>assembly = ".net"</code> for .netmodule file in the <code>&lt;File&gt;</code> element is throwing an error(build error). </p>
  
  <pre><code>Error   2   The assembly file 
  'C:\Users\p486\Desktop\DCUBEII\GAC\Cdcube_inq_dynftrm_lnk_srv.netmodule' appears to be
  invalid.  &lt;br/&gt;Please ensure this is a valid assembly file and that the user has the 
  appropriate access rights to this file. &lt;br/&gt; More information: HRESULT:&lt;br/&gt; 
  0x80131018  C:\Wix\MainProject\MainProject\GACFiles.wxs 16  1   MainProject
  </code></pre>
  
  <p>How can is copy those .netmodule files to GAC? </p>
  
  <p>If we manually drag and drop the .dll file into C:\Windows\assembly folder, all the .netmodule files are being copied automatically but if try to copy only the .dll file into GAC using installer, its throwing an installtime error. How to copy those files to GAC? </p>