目前,在 netcoreapp3.1
我正在尝试升级到 .net5
.编译期间没有问题,但在 Docker 运行时,我得到:
System.NotSupportedException: CodeBase is not supported on assemblies loaded from a single-file bundle.
我知道它已发布 here :
Recommended action
Avoid dependencies on the file location of assemblies when publishing as a single file.
但我正在使用 RawRabbit它已经不活跃了。我还挖掘了源代码,发现只有一个地方调用了已弃用的 API
我目前的解决方法是不发布单个文件,但我希望渺茫吗?
最佳答案
关于c# - 由于 3rd 方依赖关系,单个文件 .NET 5 项目的发布错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64818343/