【发布时间】:2017-12-04 12:27:23
【问题描述】:
我需要使用 System.Security.Cryptography.Pkcs 因为我找到了以下命令来安装 Nuget 包。 安装包 System.Security.Cryptography.Pkcs -Version 4.4.0 with 4.5
当我从 PM 执行此操作时。它显示错误为 无法安装软件包“System.Security.Cryptography.Pkcs 4.4.0”。您正在尝试将此包安装到以“.NETFramework,Version=v4.5”为目标的项目中,但该包不包含任何与该框架兼容的程序集引用或内容文件。如需更多信息,请联系包作者。
【问题讨论】:
-
消息本身已经足够清晰了。该 NuGet 包在 .NET Framework 4.5 上不受支持,但在 4.6 及更高版本上。
-
是的,但我的依赖项目仅在 4.5 上严格运行,因此我无法更改项目框架
标签: c# .net cryptography nuget nuget-package