title: Could not load file or assembly in Solidworks addin
body: <p>I'm attempting to create a Solidworks plugin with AngelSix's SolidDna library.
  I've used the standard setup as per the examples:</p>
  
  <pre><code>public class Integration : AddInIntegration
  {
  
      // All overrides left blank
      public override void ApplicationStartup()
      {
      }
  
      public override void ConfigureServices(FrameworkConstruction construction)
      {
      }
  
      public override void PreConnectToSolidWorks()
      {
      }
  
      public override void PreLoadPlugIns()
      {
      }
  }
  
  public class MySolidDnaPlugin : SolidPlugIn
  {
      public override string AddInTitle { get; } = "foo";
      public override string AddInDescription { get; } = "bar";
  
      public override void ConnectedToSolidWorks()
      {
          // This works fine...
          Boo.Lang.List l = new Boo.Lang.List();
  
          // ....But this doesn't :(
          Boo.Lang.Compiler.BooCompiler c = new Boo.Lang.Compiler.BooCompiler();
      }
  
      public override void DisconnectedFromSolidWorks()
      {
      }
  
  }
  </code></pre>
  
  <p>I'm attempting to add support for scripting in Boo, so users can edit the scripts on the fly. I've added a reference to Boo.Lang.dll, Boo.Lang.Compiler.dll and Boo.Lang.Parser.dll, and all 3 DLLs are definitely copied to the /bin folder.</p>
  
  <p>I'm able to use classes from the Boo.Lang namespace, but as soon as I try and use the Boo.Lang.Compiler namespace it throws an error:</p>
  
  <pre><code>Could not load file or assembly 'Boo.Lang, Version=2.0.9.4, Culture=neutral, PublicKeyToken-32c39770e9a21a67' or one of its dependencies. The system cannot file the file specified.
  </code></pre>
  
  <p>The same code/setup works fine when running outside Solidworks, e.g. in a console app.</p>
  
  <p>The SolidDna docs show the process of registering the plugin DLLs with <code>regasm.exe /codebase</code>, so I tried running that with the 3 Boo DLLs, but that doesn't make any difference.</p>
  
  <p>Any suggestions or pointers?</p>