Grpc.AspNetCore 2.70.0

Prefix Reserved
dotnet add package Grpc.AspNetCore --version 2.70.0
                    
NuGet\Install-Package Grpc.AspNetCore -Version 2.70.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Grpc.AspNetCore" Version="2.70.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Grpc.AspNetCore" Version="2.70.0" />
                    
Directory.Packages.props
<PackageReference Include="Grpc.AspNetCore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Grpc.AspNetCore --version 2.70.0
                    
#r "nuget: Grpc.AspNetCore, 2.70.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Grpc.AspNetCore&version=2.70.0
                    
Install Grpc.AspNetCore as a Cake Addin
#tool nuget:?package=Grpc.AspNetCore&version=2.70.0
                    
Install Grpc.AspNetCore as a Cake Tool

Grpc.AspNetCore

Grpc.AspNetCore is a metapackage with references to:

  • Grpc.AspNetCore.Server: gRPC server library for .NET.
  • Grpc.Tools: Code-generation tooling package.
  • Google.Protobuf: Protobuf serialization library.

Configure gRPC

In Program.cs:

  • gRPC is enabled with the AddGrpc method.
  • Each gRPC service is added to the routing pipeline through the MapGrpcService method. For information about how to create gRPC services, see Create gRPC services and methods.
using GrpcGreeter.Services;

var builder = WebApplication.CreateBuilder(args);

// Add services to the container.
builder.Services.AddGrpc();

var app = builder.Build();

// Configure the HTTP request pipeline.
app.MapGrpcService<GreeterService>();

app.Run();

ASP.NET Core middleware and features share the routing pipeline, therefore an app can be configured to serve additional request handlers. The additional request handlers, such as MVC controllers, work in parallel with the configured gRPC services.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (359)

Showing the top 5 NuGet packages that depend on Grpc.AspNetCore:

Package Downloads
Microsoft.Azure.WebJobs.Extensions.Rpc

This package provides RPC capabilities to the WebJobs SDK, allowing extensions to communicate between the host and worker via RPC. For more information, please visit https://go.microsoft.com/fwlink/?linkid=2279708.

Aspire.Hosting

Core abstractions for the .NET Aspire application model.

Aspire.Hosting.AppHost

Core library and MSBuild logic for .NET Aspire AppHost projects.

Calzolari.Grpc.AspNetCore.Validation

Request message validator for Grpc.AspNetCore

Proto.Remote

Ultra-fast distributed actors for .NET.

GitHub repositories (107)

Showing the top 20 popular GitHub repositories that depend on Grpc.AspNetCore:

Repository Stars
dotnet/runtime
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
dotnet/efcore
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
dotnet/eShop
A reference .NET application implementing an eCommerce site
kurrent-io/EventStore
EventStoreDB, the event-native database. Designed for Event Sourcing, Event-Driven, and Microservices architectures
dotnet/aspire
Tools, templates, and packages to accelerate building observable, production-ready apps
grpc/grpc-dotnet
gRPC for .NET
Cysharp/MagicOnion
Unified Realtime/API framework for .NET platform and Unity.
Scighost/Starward
Game Launcher for miHoYo - 米家游戏启动器
open-telemetry/opentelemetry-dotnet
The OpenTelemetry .NET Client
aspnetrun/run-aspnetcore-microservices
Microservices on .NET platforms used ASP.NET Web API, Docker, RabbitMQ, MassTransit, Grpc, Yarp API Gateway, PostgreSQL, Redis, SQLite, SqlServer, Marten, Entity Framework Core, CQRS, MediatR, DDD, Vertical and Clean Architecture implementation with using latest features of .NET 8 and C# 12
dotnet/extensions
This repository contains a suite of libraries that provide facilities commonly needed when creating production-ready applications.
phongnguyend/Practical.CleanArchitecture
Full-stack .Net 9 Clean Architecture (Microservices, Modular Monolith, Monolith), Blazor, Angular 19, React 19, Vue 3.5, BFF with YARP, NextJs 15, Domain-Driven Design, CQRS, SOLID, Asp.Net Core Identity Custom Storage, OpenID Connect, EF Core, OpenTelemetry, SignalR, Background Services, Health Checks, Rate Limiting, Clouds (Azure, AWS, GCP), ..
prometheus-net/prometheus-net
.NET library to instrument your code with Prometheus metrics
Azure/azure-functions-host
The host/runtime that powers Azure Functions
asynkron/protoactor-dotnet
Proto Actor - Ultra fast distributed actors for Go, C# and Java/Kotlin
SkyAPM/SkyAPM-dotnet
The .NET/.NET Core instrument agent for Apache SkyWalking
AlphaYu/adnc
.NET微服务/分布式开发框架,同时也适用于单体架构系统的开发。
dotnetcore/HttpReports
HttpReports is an APM (application performance monitor) system for .Net Core.
abpframework/abp-samples
Sample solutions built with the ABP Framework
Version Downloads Last updated
2.70.0 260,234 3/10/2025
2.70.0-pre1 1,254 2/26/2025
2.67.0 2,236,973 11/21/2024
2.67.0-pre1 10,763 10/22/2024
2.66.0 3,427,663 9/20/2024
2.66.0-pre1 3,880 9/6/2024
2.65.0 2,686,994 7/27/2024
2.65.0-pre1 540 7/20/2024
2.64.0 289,119 7/19/2024
2.64.0-pre1 2,456 7/15/2024
2.63.0 2,395,227 5/24/2024
2.63.0-pre1 21,104 5/8/2024
2.62.0 1,789,685 3/29/2024
2.62.0-pre1 2,528 3/8/2024
2.61.0 2,433,419 2/22/2024
2.61.0-pre1 9,815 2/8/2024
2.60.0 2,812,933 1/3/2024
2.60.0-pre1 15,262 12/14/2023
2.59.0 3,279,600 11/8/2023
2.59.0-pre1 5,593 10/27/2023
2.58.0 969,920 10/19/2023
2.58.0-pre1 31,993 10/9/2023
2.57.0 2,024,576 9/6/2023
2.57.0-pre1 4,244 8/31/2023
2.56.0 413,523 8/25/2023
2.56.0-pre2 3,842 8/16/2023
2.56.0-pre1 4,228 8/3/2023
2.55.0 2,539,496 7/4/2023
2.55.0-pre1 4,624 6/23/2023
2.54.0 1,144,972 6/15/2023
2.54.0-pre1 9,906 5/25/2023
2.53.0 1,808,244 5/5/2023
2.53.0-pre1 17,413 4/12/2023
2.52.0 2,305,073 3/15/2023
2.52.0-pre1 6,832 3/3/2023
2.51.0 2,691,585 1/2/2023
2.51.0-pre1 5,236 12/7/2022
2.50.0 1,834,104 11/17/2022
2.50.0-pre1 21,246 11/3/2022
2.49.0 15,728,889 9/26/2022
2.49.0-pre1 2,779 9/1/2022
2.48.0 1,688,994 8/24/2022
2.48.0-pre1 2,107 8/17/2022
2.47.0 2,829,886 7/3/2022
2.47.0-pre1 2,339 6/23/2022
2.46.0 2,143,554 5/13/2022
2.46.0-pre1 2,313 4/28/2022
2.45.0 1,535,827 4/19/2022
2.45.0-pre1 3,749 4/7/2022
2.44.0 1,209,217 3/17/2022
2.44.0-pre1 18,252 3/9/2022
2.43.0 930,526 2/25/2022
2.43.0-pre1 9,239 1/28/2022
2.42.0 2,810,569 1/19/2022
2.42.0-pre1 8,856 12/30/2021
2.41.0 1,238,137 12/7/2021
2.41.0-pre1 17,331 11/12/2021
2.40.0 4,837,991 10/5/2021
2.40.0-pre1 3,720 9/9/2021
2.39.0 1,369,972 8/18/2021
2.39.0-pre1 4,044 8/6/2021
2.38.0 1,579,894 6/11/2021
2.38.0-pre1 938 6/4/2021
2.37.0 1,190,665 4/20/2021
2.37.0-pre1 701 4/14/2021
2.36.0 617,449 3/17/2021
2.36.0-pre1 1,228 3/9/2021
2.35.0 688,427 2/4/2021
2.35.0-pre1 1,732 1/26/2021
2.34.0 1,561,485 12/11/2020
2.34.0-pre1 3,034 12/1/2020
2.33.1 832,089 10/28/2020
2.33.1-pre1 1,027 10/22/2020
2.32.0 1,061,510 10/5/2020
2.32.0-pre1 13,205 9/8/2020
2.31.0 519,384 8/14/2020
2.31.0-pre2 1,166 8/3/2020
2.30.0 267,338 7/16/2020
2.30.0-pre1 2,780 6/17/2020
2.29.0 510,171 5/27/2020
2.29.0-pre1 3,347 5/15/2020
2.28.0 644,789 4/9/2020
2.28.0-pre2 15,439 3/11/2020
2.28.0-pre1 6,461 3/3/2020
2.27.0 1,517,771 2/7/2020
2.27.0-pre1 6,542 1/24/2020
2.26.0 317,859 12/19/2019
2.26.0-pre1 939 12/10/2019
2.25.0 912,209 11/7/2019
2.25.0-pre1 905 11/1/2019
2.24.0 327,414 10/21/2019
2.24.0-pre1 1,353 10/9/2019
2.23.2 229,313 9/20/2019
0.2.23-pre2 4,675 9/6/2019
0.2.23-pre1 5,046 8/21/2019
0.1.22-pre3 6,912 7/30/2019
0.1.22-pre2 10,384 7/2/2019