Stay organized with collections
Save and categorize content based on your preferences.
This tutorial shows how to prepare your local machine for
developing .NET
and
.NET core
apps that run on Google Cloud and call
Google Cloud APIs.
Install a development environment
The recommended development environment for running the .NET tutorials and
sample apps in this documentation is
Visual Studio
or
Visual Studio Code.
Create a Google Cloud project
Create a Google Cloud project
to run your apps. Google Cloud projects form the basis for creating,
enabling, and using all Google Cloud services.
Set up authentication
Your .NET app must authenticate itself to use Google Cloud APIs. You use
Application Default Credentials (ADC),
which let you provide credentials for either local development or in a
production environment.
If you're using a local shell, then create local authentication credentials for your user
account:
gcloudauthapplication-defaultlogin
You don't need to do this if you're using Cloud Shell.
Even though you can create and manage Google Cloud resources via your web
browser using the
Google Cloud console,
if you'd prefer to manage your Google Cloud resources from within
Visual Studio or from the command-line, you can consider installing the
following tools:
Google Cloud CLI:
The gcloud CLI is a command-line interface for Google Cloud
products and services.
Tools for Visual Studio:
Tools for Visual Studio enables development in Visual Studio on
Google Cloud.
Tools for PowerShell:
Tools for PowerShell is a set of cmdlets for Windows PowerShell
that lets you manage Google Cloud resources.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis guide details the necessary steps to prepare your local environment for developing .NET and .NET Core applications that will interact with Google Cloud services.\u003c/p\u003e\n"],["\u003cp\u003eYou can use either Visual Studio or Visual Studio Code as your primary development environment for the tutorials and sample applications.\u003c/p\u003e\n"],["\u003cp\u003eA Google Cloud project is required as the foundation for utilizing all Google Cloud services, and can be created using the Google Cloud project creation resource.\u003c/p\u003e\n"],["\u003cp\u003eAuthentication to Google Cloud APIs is managed through Application Default Credentials (ADC), which are adaptable for both local development and production environments.\u003c/p\u003e\n"],["\u003cp\u003eOptionally, the Google Cloud CLI, Tools for Visual Studio, or Tools for PowerShell can be installed to manage Google Cloud resources directly from your development environment.\u003c/p\u003e\n"]]],[],null,[]]