NuGet包不在Package Manager搜索结果中

时间:2015-04-27 05:53:32

标签: nuget nuget-package nuget-spec

我们有package拒绝出现在Visual Studio中的 NuGet Package Manager 搜索结果中。搜索Bridge.NET应该返回results

enter image description here

最初我们认为这可能只是缓存问题,所以我们等了几个版本,但问题还在继续。这是.nuspec文件的副本供参考:

<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
    <metadata minClientVersion="2.5">
        <id>Bridge</id>
        <version>1.3.0</version>
        <title>Bridge.NET</title>
        <authors>Object.NET, Inc.</authors>
        <iconUrl>http://speed.bridge.net/identity/bridgedotnet-100x100.png</iconUrl>
        <owners />
        <licenseUrl>https://github.com/bridgedotnet/Bridge/blob/master/LICENSE</licenseUrl>
        <projectUrl>http://bridge.net</projectUrl>
        <requireLicenseAcceptance>false</requireLicenseAcceptance>
        <description>Write modern mobile and web apps in C#. Run them anywhere with JavaScript.

WARNING: Installing this package will remove references to System.* and Microsoft.* within your project as they will cause compiler conflicts with Bridge.NET.</description>
        <summary>Write modern mobile and web apps in C#. Run them anywhere in JavaScript with Bridge.NET.</summary>
        <copyright>Copyright (c) 2008-2015, Object.NET, Inc. (http://object.net/). All rights reserved.</copyright>
        <tags>bridge bridge.net js javascript C# csharp mobile ios asp.net aspnet mvc aspnetmvc web transpiler compiler object.net</tags>
        <dependencies>
        </dependencies>
        <frameworkAssemblies>
        </frameworkAssemblies>
    </metadata>
</package>

如果直接在NuGet.org上进行搜索,则会返回正确的结果。同样,软件包管理器控制台也没有问题。

非常感谢任何诊断此问题的帮助。获取搜索结果中列出的包是否有诀窍?

1 个答案:

答案 0 :(得分:1)

如果软件包与尝试使用它们的项目不兼容,软件包管理器将过滤掉软件包。您的问题可能是NuGet包中的dll比尝试使用它们的项目更高的.NET版本。这将导致它们不出现在包管理器搜索结果