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.
我已将 PDFClown nuget 包添加到 .net 核心项目中,并在运行时遇到以下错误:
无法加载文件或程序集“PDFClown,Version=0.1.2.0,Culture=neutral,PublicKeyToken=null”或其依赖项之一。需要强命名程序集。(来自 HRESULT 的异常:0x80131044)
我还会注意到它构建没有问题,问题只出现在运行时。
弄清楚了; 显然这是一个未签名的程序集。
您可以通过在添加包的项目的 .csproj 文件中将 SignAssembly 标记修改为 false 来解决此问题。然而,这可能是一个不安全的更改,所以我将向 PDFClown 开发人员提出这个问题。