たとえば、.Net Platform Standardのパッケージのみを希望する場合。今、私はパッケージを探して、それをインストールしようとしています:サポートされているプラットフォームでNugetパッケージをフィルタリングすることはできますか?
error: Package <name> is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0).
Package <name> supports: portable-win81+wpa81 (.NETPortable,Version=v0.0,Profile=Profile32)
error: One or more packages are incompatible with .NETCoreApp,Version=v1.0.
私はもう一度やり直す必要があります。サポートされているプラットフォームが表示されます。つまり、その情報はそこにあります。
編集:ビジュアルスタジオでフィルタを設定することはできますが、それは表示されませんが、nuget.orgでも見たことがありません。だから問題は:特定のプラットフォーム(つまり何かをプラットフォームで検索することによってフィルタリングすること)でパッケージを取得する方法があるかどうかです。私が興味を持っているのは.Net Platform Standardです。私はあなたがここで曖昧な何かを見ていない願っています。
編集:nuget.org
から Here is the search api<edmx:Edmx xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" Version="1.0">
<edmx:DataServices xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" m:DataServiceVersion="2.0" m:MaxDataServiceVersion="2.0">
<Schema xmlns="http://schemas.microsoft.com/ado/2006/04/edm" Namespace="NuGetGallery.OData">
<EntityType Name="V2FeedPackage" m:HasStream="true">...</EntityType>
</Schema>
<Schema xmlns="http://schemas.microsoft.com/ado/2006/04/edm" Namespace="NuGetGallery">
<EntityContainer Name="V2FeedContext" m:IsDefaultEntityContainer="true">
<EntitySet Name="Packages" EntityType="NuGetGallery.OData.V2FeedPackage"/>
<FunctionImport Name="Search" ReturnType="Collection(NuGetGallery.OData.V2FeedPackage)" EntitySet="Packages">
<Parameter Name="searchTerm" Type="Edm.String" FixedLength="false" Unicode="false"/>
<Parameter Name="targetFramework" Type="Edm.String" FixedLength="false" Unicode="false"/>
<Parameter Name="includePrerelease" Type="Edm.Boolean" Nullable="false"/>
</FunctionImport>
<FunctionImport Name="FindPackagesById" ReturnType="Collection(NuGetGallery.OData.V2FeedPackage)" EntitySet="Packages">
<Parameter Name="id" Type="Edm.String" FixedLength="false" Unicode="false"/>
</FunctionImport>
<FunctionImport Name="GetUpdates" ReturnType="Collection(NuGetGallery.OData.V2FeedPackage)" EntitySet="Packages">
<Parameter Name="packageIds" Type="Edm.String" FixedLength="false" Unicode="false"/>
<Parameter Name="versions" Type="Edm.String" FixedLength="false" Unicode="false"/>
<Parameter Name="includePrerelease" Type="Edm.Boolean" Nullable="false"/>
<Parameter Name="includeAllVersions" Type="Edm.Boolean" Nullable="false"/>
<Parameter Name="targetFrameworks" Type="Edm.String" FixedLength="false" Unicode="false"/>
<Parameter Name="versionConstraints" Type="Edm.String" FixedLength="false" Unicode="false"/>
</FunctionImport>
</EntityContainer>
</Schema>
</edmx:DataServices>
</edmx:Edmx>
私はSearch functionを使用する場合は、 '検索語' パラメータが 'targetFramework' パラメータに動作しますが、ありません。
別の編集:フィドラーでVisualStudioをNuGet HTTPリクエスト:
GET /api/v2/Search()?$filter=IsAbsoluteLatestVersion&searchTerm='mvv'&targetFramework='netcoreapp1.0'&includePrerelease=true&$skip=0&$top=26 HTTP/1.1
は、ターゲットフレームワークは、Visual StudioのNuGetパッケージマネージャから自動的に設定されています。実際にどのように動作しないことはNuGet
から検索APIでtargetFrameworkパラメータである
nuget.orgまたはビルド中にローカルで検索しますか?私の最初の恩恵を得るのが大好きですが、質問は少しばかりです;) – Thomas
@トーマス答えは3つをすべて含むことはできません!より広い視聴者に適用可能にすることで、光沢のあるゴールドバッジか2つでチャンスを増やすことができます;) – Thebluefish