title: Assembly.Load + Dependencies
body: <p>I am facing an issue when loading DLLs and their references. The scenario is this:</p>
  
  <p>I have a C# library project (let's call it "A") which references another C# library project (let's call it "B"). Both the Dlls of these projects are stored on Azure Blob storage but this is irrelevant in reality.</p>
  
  <p>As part of my project I am using <code>XslCompiledTransform.Transform</code>. After loading dll A using <code>Assembly.Load</code>, I then load dll B using again <code>Assembly.Load</code>.</p>
  
  <p>The issue is that after executing the <code>Transform</code> method I keep getting an error that <strong>dll B cannot be found</strong>, even though it is present when I call <code>AppDomain.CurrentDomain.GetAssemblies();</code></p>
  
  <p>As a note, if I remove the dependency of B from A everything works, so we can ensure that the <code>Transform</code>, using just dll A, is working.</p>
  
  <blockquote>
    <p>FileNotFoundException: Could not load file or assembly 'xxx,
    Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its
    dependencies. The system cannot find the file specified.</p>
  </blockquote>
  
  <p>One more thing, if I add dll B to the projects Bin folder then it works, but of course, I cannot do this, I just did this to prove that it works.</p>