すべての Google API は NuGet パッケージ マネージャから .NET デベロッパーに公開されています。
Visual Studio のプロジェクトに Google API を追加するには:
[プロジェクトの参照] を右クリックします。
[NuGet パッケージを管理] をクリックします。
[参照] タブを選択します。
検索する前に、すべての Google Cloud ライブラリを表示できるように [プレリリースを含む] が選択されていることを確認します。
注: リストのライブラリの一部はベータ版です。
検索文字列(google pubsub など)を入力します。
次の 2 種類の検索結果が返されます。
Google Cloud 接頭辞付きの結果は Cloud クライアント ライブラリであり、API にプログラムでアクセスする推奨の方法です。 Google Cloud API の詳細とリストについては、.NET Cloud クライアント ライブラリをご覧ください。
Google.Apis 接頭辞付きの結果は、すべての Google API で使用可能な Google API クライアント ライブラリです。使用している API で Cloud クライアント ライブラリが利用できない場合は、これらのライブラリの使用をおすすめします。Google API クライアント ライブラリの完全なリストについては、.NET をご覧ください。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-09-04 UTC。"],[],[],null,["# Finding a Google API Library\n\nAll Google APIs are available to .NET developers through the NuGet package\nmanager.\n\nTo add Google APIs to your project in Visual Studio:\n\n1. Right-click **Project references**.\n\n2. Click **Manage NuGet Packages**.\n\n3. Choose the **Browse** tab.\n\n4. Before searching, make sure that **Include prerelease** is checked to show\n all Google Cloud libraries.\n\n **Note** : Some of the libraries listed are **Beta**.\n5. Enter a search string, for example **google pubsub**.\n\n\nSearching returns two different types of results:\n\n- Results with a **Google Cloud** prefix are the Cloud Client Libraries and the recommended way to access Google Cloud APIs programmatically. For more information and a list of APIs, see [.NET Cloud Client Libraries](/dotnet/docs/reference).\n- Results with a **Google.Apis** prefix are Google API Client Libraries that are available for all Google APIs. You might want to use these libraries if a Cloud Client Library isn't available for the API you're using. For a complete list of Google API Client Libraries, see [.NET](https://developers.google.com/api-client-library/dotnet/)."]]