title: Cannot delete file loaded through Assembly.LoadFrom in C#
body: <p>I am creating an uninstall utility in C#. The utility will unregistered the files registered through Regasm and then it will delete those files.</p>
  
  <pre><code>Assembly asm = Assembly.LoadFrom("c:\\Test.dll")
  int count = files.Length;
  RegistrationServices regAsm = new RegistrationServices();
  if (regAsm.UnregisterAssembly(asm))
  MessageBox.Show("Unregistered Successfully");
  </code></pre>
  
  <p>The above code works fine but when i try to delete Test.dll, error appear and cannot delete it.
  What i have understand that Assembly.LoadFrom("c:\Test.dll"), has save the reference to this file and it is not losing it. Is there any way to resolve this issue?</p>
  
  <p>Thanks and Regards</p>