c# - 由于 3rd 方依赖关系,单个文件 .NET 5 项目的发布错误

标签 c# .net-5 rawrabbit

目前,在 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
我目前的解决方法是不发布单个文件,但我希望渺茫吗?

最佳答案

套装IncludeAllContentForSelfExtract在发布配置文件中为 true。
enter image description here

关于c# - 由于 3rd 方依赖关系,单个文件 .NET 5 项目的发布错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64818343/

相关文章:

c# - 如何获取 stringbuilder 并将其转换为 streamReader?

c# - OpenFileDialog 在显示浏览对话框之前抛出 System.IO.FileNotFoundException

c# - 从 Swagger (Swashbuckle) 隐藏参数

c# - 如何将 WPF 支持添加到 .NET 5 Winforms 项目

c# - 使用 RabbitMQ 的 .NET Core 微服务

c# - 为什么没有接受 Doubles 作为参数的 Interlocked.Add 重载?

c# - 事件处理程序会阻止垃圾收集的发生吗?

c# - awesomium 控件未访问 google

c# - RawRabbit.Pipe 命名空间