[英]PDFClown nuget package cannot load assembly
I've added the PDFClown nuget package to a .net core project and ran into the following error at runtime: 我已经将PDFClown nuget包添加到.net核心项目中,并在运行时遇到以下错误:
Could not load file or assembly 'PDFClown, Version=0.1.2.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
无法加载文件或程序集“ PDFClown,Version = 0.1.2.0,Culture = neutral,PublicKeyToken = null”或其依赖项之一。 A strongly-named assembly is required.
需要一个全名程序集。 (Exception from HRESULT: 0x80131044)
(来自HRESULT的异常:0x80131044)
I'll also note that it build without issue and the problem only appears at runtime. 我还将注意到,它的构建没有问题,并且问题仅在运行时出现。
Figured it out; 弄清楚了; apparently it's an unsigned assembly.
显然,这是一个未签名的程序集。
You can fix this issue by modifying the SignAssembly tag to false in the .csproj file for the project(s) which added the package. 您可以通过将添加了包的项目的.csproj文件中的SignAssembly标记修改为false来解决此问题。 This may be an unsafe change however, so I'm going to raise the issue with the PDFClown devs.
但是,这可能是不安全的更改,因此,我将提出有关PDFClown开发人员的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.