简体   繁体   English

PDFClown nuget软件包无法加载程序集

[英]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.

相关问题 '无法加载文件或程序集。 系统找不到指定的文件' - 打包后抛出 .NET 框架 NuGet package - 'Could not load file or assembly. The system cannot find the file specified' - thrown after packaging .NET Framework NuGet package 从本地 Nuget 包文件以编程方式加载程序集 - Programmatically Load Assembly From Local Nuget Package File Elmah MySql Nuget包问题'无法加载文件或程序集' - Elmah MySql Nuget Package Issue 'Could not load file or assembly' 无法为 NET Standard 加载 NuGet 包的文件或程序集异常 NET 5/6 - could not load file or assembly exception NET 5/6 of NuGet package for NET Standard 来自 NuGet package 的运行时异常引用类型:'无法加载文件或程序集'Foo'。 该系统找不到指定的文件。' - Runtime exception referencing type from a NuGet package: 'Could not load file or assembly 'Foo'. The system cannot find the file specified.' Nuget包引用导致“无法加载文件或程序集”? - Nuget package references cause “Could not load file or assembly” ? Publish Azure Function as NuGet package (or load function from external assembly) - Publish Azure Function as NuGet package (or load function from external assembly) NSB ScriptBuilderTask 无法解析自己的程序集 nuget package - NSB ScriptBuilderTask cannot resolve assembly of own nuget package NuGet:找不到程序集 - NuGet: cannot find Assembly 安装MVC论坛Nuget包后无法加载文件或程序集'Ninject.Web' - Could not load file or assembly 'Ninject.Web' after Install MVC Forum Nuget Package
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM