title: Could not find file or or one of its dependencies thrown before method is entered
body: <p>I want to use a windows form that is in a Framework 4.7.2 library</p>
  <p>I have the following stack ;</p>
  <pre><code>Framework 4.72 XAF Winforms exe which references
  Framework 4.7.2 library1 which references
  Framework 4.7.2 library2 which references a a standard2.0 library
  </code></pre>
  <p>I have the following code in Library2</p>
  <pre><code>   public static void ShowMessageBox()
      {
          MessageBox.Show(&quot;hi&quot;);
      }
  
      public static void ShowForm() // errors when this is called
      {
          var form = new Form1(); // debugger can not reach here
          MessageBox.Show(&quot;hi2&quot;);
      }
  </code></pre>
  <p>I can call ShowMessageBox
  However if I call ShowForm I get a System.IO.FileNotFoundException exception occurs immediately.  The line that instantiates the form is never reached.</p>
  <pre><code>System.IO.FileNotFoundException: 'Could not load file or assembly 'MyLibrary, 
  Version=0.0.0.0, Culture=neutral, PublicKeyToken=a3471ea16b9add4c' 
  or one of its dependencies. The system cannot find the file specified.'
  </code></pre>