gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 13:54:33 30 4
gpt4 key购买 nike

目前,在 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/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com