2015-04-27 46 views
1

我們有package拒絕出現在NuGet包管理器 Visual Studio中的搜索結果。搜索Bridge.NET應返回resultsNuGet包不在包管理器中搜索結果

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

如果軟件包與試圖使用它們的項目不兼容,軟件包管理器會過濾掉軟件包。你的問題可能在於你的NuGet包中的dll是一個比試圖使用它們的項目更高的.NET版本。這會導致它們不會出現在包管理器搜索結果中

+1

是的,這正是問題所在。將一個'/ lib/net45 /'文件夾添加到NuGet包後,該項目出現在搜索結果中。感謝您指點我正確的方向。 –