1

我们有一个拒绝出现在 Visual Studio 中的NuGet 包管理器搜索结果中。搜索Bridge.NET应该返回结果

在此处输入图像描述

最初我们认为这可能只是缓存问题,所以我们等待了几个版本,但问题仍然存在。这是该文件的副本以.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上进行搜索,则会返回正确的结果。同样,包管理器控制台也没有问题。

任何诊断此问题的帮助将不胜感激。在搜索结果中列出一个包有诀窍吗?

4

1 回答 1

1

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

于 2015-04-27T10:32:28.143 回答