【发布时间】:2017-06-21 16:47:40
【问题描述】:
我创建了这个包,我在项目中需要它但无法安装,出现这个错误:
无法安装软件包“Mshwf.NiceLinq 1.0.9”。你正试图 将此软件包安装到目标项目中 '.NETFramework,Version=v4.5',但包中不包含任何 与之兼容的程序集引用或内容文件 框架。如需更多信息,请联系包作者
不知道为什么会这样,在另一个项目(Console)中我把框架改成4.6等版本都没有问题,但是这只发生在这个项目(MVC和Web API)中:
这是 nuspec 文件:
<?xml version="1.0"?>
<package >
<metadata>
<id>Mshwf.NiceLinq</id>
<version>1.0.9</version>
<title>Nice LINQ</title>
<authors>MShawaf</authors>
<owners>Mshawaf</owners>
<projectUrl>https://github.com/mshwf/NiceLinq</projectUrl>
<iconUrl>https://raw.githubusercontent.com/mshwf/NiceLinq/master/logo.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>See it as: WHERE ID IN (1, 2, 3, 7, 9, 22, 30, 101)</description>
<releaseNotes>Minor changes.</releaseNotes>
<copyright>Copyright 2016</copyright>
<tags>LINQ IEnumerable Where Contains Search Filter</tags>
</metadata>
</package>
【问题讨论】:
标签: nuget nuget-package nuget-spec