Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前,netcoreapp3.1我正在尝试升级到.net5. 编译期间没有问题,但在 Docker 运行时,我得到:
netcoreapp3.1
.net5
System.NotSupportedException:从单个文件包加载的程序集不支持 CodeBase。
我知道它在这里发布:
建议操作 当作为单个文件发布时,避免依赖于程序集的文件位置。
当作为单个文件发布时,避免依赖于程序集的文件位置。
但我正在使用RawRabbit并且它已经处于非活动状态。我还挖掘了源代码,发现只有一个地方调用了已弃用的API
我目前的解决方法是不发布单个文件,但我没有希望了吗?
在发布配置文件中设置IncludeAllContentForSelfExtract为 true。
IncludeAllContentForSelfExtract