我使用以下内容创建了自己的nuget包:
我有一个默认的nuspec:
<?xml version="1.0"?>
<package >
<metadata>
<id>Communited.PluginService.Base</id>
<version>5.4.3.4</version>
<authors>Communited</authors>
<owners>Communited</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>The Communited PluginService Base application. Needed to run custom plugins</description>
<copyright>Copyright 2016</copyright>
</metadata>
</package>
在我的项目中安装时,我收到以下错误:
Install-Package : Could not install package 'Communited.PluginService.Base 5.4.3.4'. 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.
我安装它的项目是.NET Framework 4.5
我做错了什么?
添
答案 0 :(得分:0)
你能试试吗,转到视图 - &gt;其他Windows - &gt;包管理器控制台,
运行以下命令,(如果程序包可用于目标框架)
update-package -reinstall
以下是更多信息, update-package