尝试从Nuget.Server安装软件包给出兼容性错误

时间:2019-02-20 10:43:27

标签: c# nuget nuget-server

我已经在网上搜索了有关此问题的所有内容,但仍然找不到任何相关的内容。

我打包了针对.Net Framework 4.5的库。它在.nupkg中具有\ lib \ net45 \ PackageName.dll。 我可以从Visual Studio Nuget程序包管理器(本地文件夹作为存储库)将此程序包安装到控制台项目(目标是.Net4.5)中,并且可以正常工作。

我在Windows Server 2012 IIS上安装了Nuget.Server。我可以从命令窗口中无任何错误地推送我的软件包。我可以通过“ nuget list”命令看到该软件包。我也在MS VS的Nuget软件包管理器中看到它。但是当我尝试安装它时,出现以下错误:

Error Could not install package 'PackageName 1.1.0'. 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.

在服务器上,我具有以下路径: NugetServer \ Packages \ PackageName \ 1.1.0 \ {.nupkg,.sha512,.nuspec}

我还能做什么?我很高兴在这里提出任何建议。

0 个答案:

没有答案
相关问题