C# – First steps with C# and .NET – part 012 .

In this tutorial, I will show you how to start using Google Cloud Platform with Visual Studio 2019 and C#.
The main goal is to create a Cloud Storage buckets.
First, create a console project into your Visual Studio 2019 I.D.E.

Open the cloud google.com dotnet webpage and use Try It Free option.
This allows you to use a free account with 300$ free option:

Make all settings for your account, add your account credit card, and a new project will create and named My First Project.
Into your Visual Studio 2019 open into main menu ToolsNuGet Package ManagerPackage manager Console and use this command to install Google client library to access the Google Cloud Storage API:

Use the Set up a project button from the same webpage to set up your project.
This will show you a window with some information for your project and download the JSON file:

The JSON file can be found on this URL: https://console.cloud.google.com/apis/credentials?project=YOUR-PROJECT-ID.
If you want to create another JSON or set an authentication credential, see this webpage.
You need to have a billing account in order to use this example, see this webpage.
If not you will get this error:

This information should be used in the following source code:

Build the project and run it, will work well:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.