Grpc.AspNetCore
                             
                            
                                2.71.0
                            
                        
                            
                                
                                
                                    Prefix Reserved
                                
                            
                    dotnet add package Grpc.AspNetCore --version 2.71.0
NuGet\Install-Package Grpc.AspNetCore -Version 2.71.0
<PackageReference Include="Grpc.AspNetCore" Version="2.71.0" />
<PackageVersion Include="Grpc.AspNetCore" Version="2.71.0" />
<PackageReference Include="Grpc.AspNetCore" />
paket add Grpc.AspNetCore --version 2.71.0
#r "nuget: Grpc.AspNetCore, 2.71.0"
#:package Grpc.AspNetCore@2.71.0
#addin nuget:?package=Grpc.AspNetCore&version=2.71.0
#tool nuget:?package=Grpc.AspNetCore&version=2.71.0
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 
AddGrpcmethod. - Each gRPC service is added to the routing pipeline through the 
MapGrpcServicemethod. 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.
Links
| Product | Versions 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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. | 
- 
                                                    
net6.0
- Google.Protobuf (>= 3.30.2)
 - Grpc.AspNetCore.Server.ClientFactory (>= 2.71.0)
 - Grpc.Tools (>= 2.71.0)
 
 - 
                                                    
net7.0
- Google.Protobuf (>= 3.30.2)
 - Grpc.AspNetCore.Server.ClientFactory (>= 2.71.0)
 - Grpc.Tools (>= 2.71.0)
 
 - 
                                                    
net8.0
- Google.Protobuf (>= 3.30.2)
 - Grpc.AspNetCore.Server.ClientFactory (>= 2.71.0)
 - Grpc.Tools (>= 2.71.0)
 
 - 
                                                    
net9.0
- Google.Protobuf (>= 3.30.2)
 - Grpc.AspNetCore.Server.ClientFactory (>= 2.71.0)
 - Grpc.Tools (>= 2.71.0)
 
 
NuGet packages (430)
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.  | 
                                                    |
| 
                                                        
                                                            Aspire.Hosting.Azure
                                                        
                                                            
                                                         Azure resource types for .NET Aspire.  | 
                                                    |
| 
                                                        
                                                            Aspire.Hosting.Testing
                                                        
                                                            
                                                         Testing support for the .NET Aspire application model.  | 
                                                    
GitHub repositories (115)
Showing the top 20 popular GitHub repositories that depend on Grpc.AspNetCore:
| Repository | Stars | 
|---|---|
| 
                                                        
                                                            microsoft/semantic-kernel
                                                        
                                                         
                                                            Integrate cutting-edge LLM technology quickly and easily into your apps
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            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/KurrentDB
                                                        
                                                         
                                                            KurrentDB is a database that's engineered for modern software applications and event-driven architectures. Its event-native design simplifies data modeling and preserves data integrity while the integrated streaming engine solves distributed messaging challenges and ensures data consistency.
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            dotnet/aspire
                                                        
                                                         
                                                            Aspire is the tool for code-first, extensible, observable dev and deploy.
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            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
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            Azure-Samples/cognitive-services-speech-sdk
                                                        
                                                         
                                                            Sample code for the Microsoft Cognitive Services Speech SDK
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            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 20, 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微服务/分布式开发框架,同时也适用于单体架构系统的开发。
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            abpframework/abp-samples
                                                        
                                                         
                                                            Sample solutions built with the ABP Framework
                                                         
                                                     | 
                                                    
| Version | Downloads | Last Updated | 
|---|---|---|
| 2.71.0 | 5,866,076 | 4/25/2025 | 
| 2.71.0-pre1 | 840 | 4/16/2025 | 
| 2.70.0 | 2,469,054 | 3/10/2025 | 
| 2.70.0-pre1 | 2,349 | 2/26/2025 | 
| 2.67.0 | 5,207,493 | 11/21/2024 | 
| 2.67.0-pre1 | 12,728 | 10/22/2024 | 
| 2.66.0 | 6,421,862 | 9/20/2024 | 
| 2.66.0-pre1 | 5,962 | 9/6/2024 | 
| 2.65.0 | 3,766,742 | 7/27/2024 | 
| 2.65.0-pre1 | 713 | 7/20/2024 | 
| 2.64.0 | 596,376 | 7/19/2024 | 
| 2.64.0-pre1 | 3,062 | 7/15/2024 | 
| 2.63.0 | 3,245,301 | 5/24/2024 | 
| 2.63.0-pre1 | 21,441 | 5/8/2024 | 
| 2.62.0 | 2,456,811 | 3/29/2024 | 
| 2.62.0-pre1 | 2,760 | 3/8/2024 | 
| 2.61.0 | 3,799,595 | 2/22/2024 | 
| 2.61.0-pre1 | 10,054 | 2/8/2024 | 
| 2.60.0 | 3,538,408 | 1/3/2024 | 
| 2.60.0-pre1 | 16,801 | 12/14/2023 | 
| 2.59.0 | 4,213,462 | 11/8/2023 | 
| 2.59.0-pre1 | 5,768 | 10/27/2023 | 
| 2.58.0 | 1,029,672 | 10/19/2023 | 
| 2.58.0-pre1 | 32,691 | 10/9/2023 | 
| 2.57.0 | 2,887,524 | 9/6/2023 | 
| 2.57.0-pre1 | 4,422 | 8/31/2023 | 
| 2.56.0 | 475,328 | 8/25/2023 | 
| 2.56.0-pre2 | 4,044 | 8/16/2023 | 
| 2.56.0-pre1 | 4,420 | 8/3/2023 | 
| 2.55.0 | 3,031,669 | 7/4/2023 | 
| 2.55.0-pre1 | 4,821 | 6/23/2023 | 
| 2.54.0 | 1,171,414 | 6/15/2023 | 
| 2.54.0-pre1 | 10,276 | 5/25/2023 | 
| 2.53.0 | 1,954,296 | 5/5/2023 | 
| 2.53.0-pre1 | 17,895 | 4/12/2023 | 
| 2.52.0 | 2,595,271 | 3/15/2023 | 
| 2.52.0-pre1 | 7,085 | 3/3/2023 | 
| 2.51.0 | 3,014,979 | 1/2/2023 | 
| 2.51.0-pre1 | 5,479 | 12/7/2022 | 
| 2.50.0 | 2,032,513 | 11/17/2022 | 
| 2.50.0-pre1 | 25,288 | 11/3/2022 | 
| 2.49.0 | 24,662,878 | 9/26/2022 | 
| 2.49.0-pre1 | 3,001 | 9/1/2022 | 
| 2.48.0 | 2,356,858 | 8/24/2022 | 
| 2.48.0-pre1 | 2,318 | 8/17/2022 | 
| 2.47.0 | 3,283,881 | 7/3/2022 | 
| 2.47.0-pre1 | 2,600 | 6/23/2022 | 
| 2.46.0 | 2,347,188 | 5/13/2022 | 
| 2.46.0-pre1 | 2,530 | 4/28/2022 | 
| 2.45.0 | 1,615,208 | 4/19/2022 | 
| 2.45.0-pre1 | 3,989 | 4/7/2022 | 
| 2.44.0 | 1,282,337 | 3/17/2022 | 
| 2.44.0-pre1 | 18,472 | 3/9/2022 | 
| 2.43.0 | 957,888 | 2/25/2022 | 
| 2.43.0-pre1 | 9,499 | 1/28/2022 | 
| 2.42.0 | 3,345,233 | 1/19/2022 | 
| 2.42.0-pre1 | 9,379 | 12/30/2021 | 
| 2.41.0 | 1,268,957 | 12/7/2021 | 
| 2.41.0-pre1 | 17,620 | 11/12/2021 | 
| 2.40.0 | 5,215,404 | 10/5/2021 | 
| 2.40.0-pre1 | 3,948 | 9/9/2021 | 
| 2.39.0 | 1,409,313 | 8/18/2021 | 
| 2.39.0-pre1 | 4,384 | 8/6/2021 | 
| 2.38.0 | 1,673,896 | 6/11/2021 | 
| 2.38.0-pre1 | 1,155 | 6/4/2021 | 
| 2.37.0 | 1,218,775 | 4/20/2021 | 
| 2.37.0-pre1 | 939 | 4/14/2021 | 
| 2.36.0 | 681,677 | 3/17/2021 | 
| 2.36.0-pre1 | 1,453 | 3/9/2021 | 
| 2.35.0 | 708,698 | 2/4/2021 | 
| 2.35.0-pre1 | 1,972 | 1/26/2021 | 
| 2.34.0 | 1,601,798 | 12/11/2020 | 
| 2.34.0-pre1 | 3,260 | 12/1/2020 | 
| 2.33.1 | 847,720 | 10/28/2020 | 
| 2.33.1-pre1 | 1,261 | 10/22/2020 | 
| 2.32.0 | 1,184,325 | 10/5/2020 | 
| 2.32.0-pre1 | 13,583 | 9/8/2020 | 
| 2.31.0 | 525,826 | 8/14/2020 | 
| 2.31.0-pre2 | 1,406 | 8/3/2020 | 
| 2.30.0 | 271,947 | 7/16/2020 | 
| 2.30.0-pre1 | 2,996 | 6/17/2020 | 
| 2.29.0 | 518,986 | 5/27/2020 | 
| 2.29.0-pre1 | 3,585 | 5/15/2020 | 
| 2.28.0 | 699,380 | 4/9/2020 | 
| 2.28.0-pre2 | 15,687 | 3/11/2020 | 
| 2.28.0-pre1 | 6,728 | 3/3/2020 | 
| 2.27.0 | 1,557,983 | 2/7/2020 | 
| 2.27.0-pre1 | 6,793 | 1/24/2020 | 
| 2.26.0 | 322,722 | 12/19/2019 | 
| 2.26.0-pre1 | 1,172 | 12/10/2019 | 
| 2.25.0 | 914,934 | 11/7/2019 | 
| 2.25.0-pre1 | 1,148 | 11/1/2019 | 
| 2.24.0 | 333,584 | 10/21/2019 | 
| 2.24.0-pre1 | 1,591 | 10/9/2019 | 
| 2.23.2 | 243,628 | 9/20/2019 | 
| 0.2.23-pre2 | 4,913 | 9/6/2019 | 
| 0.2.23-pre1 | 5,443 | 8/21/2019 | 
| 0.1.22-pre3 | 7,549 | 7/30/2019 | 
| 0.1.22-pre2 | 10,922 | 7/2/2019 |