无法使用正确的 .NET 版本安装 NuGet 包

Could not install NuGet package with the correct .NET version

我在我的内部 NuGet 服务器(由 TeamCity 托管)上创建了一些包。除一个包外,所有包都按预期工作。我收到错误:

Could not install package 'MYPACKAGE'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

一切看起来都很好,但是安装这个包是不可能的。感谢您的任何建议。

问题已解决,由 NuGet 分发的程序集由 .snk 密钥强签名。这会导致问题.. 删除密钥后,一切正常。