title: Publishing error for single file .NET 5 project due to 3rd party dependencies
body: <p>Currently, on a <code>netcoreapp3.1</code> and I’m attempting to upgrade to <code>.net5</code>. There are no problems during compilation, but during runtime in Docker, I get:</p>
  <blockquote>
  <p>System.NotSupportedException: CodeBase is not supported on assemblies loaded from a single-file bundle.</p>
  </blockquote>
  <p>I know that it's published <a href="https://docs.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/5.0/assembly-api-behavior-changes-for-single-file-publish" rel="nofollow noreferrer">here</a>:</p>
  <blockquote>
  <h2>Recommended action</h2>
  <p>Avoid dependencies on the file location of assemblies when publishing as a single file.</p>
  </blockquote>
  <p>But I’m using <a href="https://github.com/pardahlman/RawRabbit" rel="nofollow noreferrer">RawRabbit</a> and it's gone inactive. I've also dug through the source and found just one place calling a deprecated <a href="https://github.com/pardahlman/RawRabbit/blob/6229f5285d2cb5b9370ebfb616de2977d0386e24/src/RawRabbit/Common/ClientPropertyProvider.cs" rel="nofollow noreferrer">API</a></p>
  <p>My current workaround is to not publish single file, but am I out of hope?</p>