Publishing error for single file .NET 5 project due to 3rd party dependencies

Viewed 2098

Currently, on a netcoreapp3.1 and I’m attempting to upgrade to .net5. There are no problems during compilation, but during runtime in Docker, I get:

System.NotSupportedException: CodeBase is not supported on assemblies loaded from a single-file bundle.

I know that it's published here:

Recommended action

Avoid dependencies on the file location of assemblies when publishing as a single file.

But I’m using RawRabbit and it's gone inactive. I've also dug through the source and found just one place calling a deprecated API

My current workaround is to not publish single file, but am I out of hope?

1 Answers

Set IncludeAllContentForSelfExtract to true in the publishing profile.

enter image description here

Related