title: MailKit script will run in VSCode, but not in Powershell - trying to load System.Buffers 4.0.2.0 instead of latest version
body: <p>This is basically the same question as <a href="https://stackoverflow.com/questions/69746273/powershell-mimekit-trying-to-load-system-buffers-4-0-2-0-instead-of-latest-work">Powershell Mimekit trying to load System.Buffers 4.0.2.0 instead of latest. Works fine in VSCode</a></p>
  <p>The error is: Exception calling &quot;Send&quot; with &quot;1&quot; argument(s): &quot;Could not load file or assembly 'System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its
  dependencies. The system cannot find the file specified.&quot;</p>
  <ul>
  <li>The latest MailKit/MimeKit 3.0.0 packages were installed from NuGet.
  This includes System.Buffers 4.5.1.</li>
  <li>I searched the PC for
  System.Buffers and only found 4.5.1 and 4.6.28619.1 in C:\Program
  Files (x86)\MySQL\Connector NET 8.0\Assemblies\netstandard2.0.</li>
  <li>Searched the registry and found 4.0.3.0 associated with QuickBooks,
  but the file itself was not found in the file structure.</li>
  </ul>
  <p>Point is, there is no 4.0.2.0 version, so why does this work in VS Code and not using powershell.exe?</p>
  <p>Is there anything that can be done to correct this and make it possible to run MailKit from PowerShell?</p>