Search⌘ K
AI Features

Setting Up gRPC Client and Server Projects Locally

Explore how to set up gRPC client and server projects on your local machine using .NET. Learn to create projects via Visual Studio and CLI, configure dependencies including NuGet packages, handle Mac-specific HTTP/2 settings, and manage development TLS certificates for secure communication.

If we have all the suitable tools installed on our development machine, including the latest .NET SDK and either a code editor or IDE, we can start creating gRPC client and server applications right away. However, if we want to do it via the GUI of an IDE, rather than the command line, we might have to install specific workload components to gain access to the relevant project templates. For example, if we're using Visual Studio on Windows, we'll need to open Visual Studio Installer, click the “Modify” button next to our Visual Studio instance, find “ASP.NET and web development” under the “Workloads” tab, and install it.

Selecting the ASP.NET and web development workload
Selecting the ASP.NET and web development workload

Once the workload is enabled, we can create an application from the ASP.NET Core gRPC service template, which will be an ASP.NET Core web application with gRPC ...