title: Trouble loading CefSharp
body: <p>I have an issue that is somewhat similar to this:</p>
  <p><a href="https://stackoverflow.com/questions/63124520/publish-could-not-load-file-or-assembly-cefsharp-core-dll">Publish Could not load file or assembly CefSharp.Core.dll</a></p>
  <p>I am developing a plugin for a larger .NET desktop application written in C#. The larger / parent application includes an older version of Chromium (about 2 years old) and the purpose of my plugin is to load and use the latest version of Chromium. The parent app, my plugin, and CefSharp all target x86.</p>
  <p>The folder structure looks sort of like this:</p>
  <pre><code>C:\...\ParentApp\ParentApp.exe
  C:\...\ParentApp\CefSharp.dll (version 71)
  C:\...\ParentApp\CefSharp.Core.dll (v71)
  C:\...\ParentApp\CefSharp.WinForms.dll (v71)
  C:\...\ParentApp\...etc... (v71)
  
  C:\...\ParentApp\plugins\MyPlugin\MyPlugin.dll (references and loads version 83.4.20)
  C:\...\ParentApp\plugins\MyPlugin\CefSharp.dll (v83)
  C:\...\ParentApp\plugins\MyPlugin\CefSharp.Core.dll (v83)
  C:\...\ParentApp\plugins\MyPlugin\CefSharp.WinForms.dll (v83)
  C:\...\ParentApp\plugins\MyPlugin\...etc... (v83)
  </code></pre>
  <p>The parent app rarely uses Chromium, so my plugin actually runs first and when it loads, it just runs the basic initialization:</p>
  <pre><code>CefSettings settings = new CefSettings();
  Cef.Initialize(settings);
  </code></pre>
  <p>I can see with Process Monitor (Procmon) that it loads up all the files from the plugin's location (which is v83) first, although it does see and check the v71 files, too.</p>
  <p>After the &quot;new CefSettings()&quot; line, I also injected a dump of the current assemblies with:</p>
  <pre><code>var assemblies = AppDomain.CurrentDomain.GetAssemblies();
  </code></pre>
  <p>...and I could see that it indeed had loaded up the 3 main assemblies (CefSharp.Core, CefSharp.WinForms, and CefSharp) with version 83.4.20.0, which is the correct version.</p>
  <p>But as soon as I hit Cef.Initialize(settings), it triggers exceptions:</p>
  <pre><code>FileNotFoundException: Could not load file or assembly 'CefSharp, Version=83.4.20.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138' or one of its dependencies. The system cannot find the file specified.
     at CefSharp.Internals.CefSharpApp.OnBeforeChildProcessLaunch(CefSharpApp* , scoped_refptr&lt;CefCommandLine&gt;* commandLine)
  
  FileNotFoundException: Could not load file or assembly 'CefSharp, Version=83.4.20.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138' or one of its dependencies. The system cannot find the file specified.
     at CefSharp.Internals.CefSharpApp.OnContextInitialized(CefSharpApp* )
  </code></pre>
  <p>I've tried a variety of things, including setting up everything in a separate appdomain, but that ran into other issues.</p>
  <p>Anyone have any thoughts on what the issue could be?</p>