Grpc.AspNetCore (2.80.0)

Published 2026-09-09 02:38:23 +03:30 by kayer

Installation

dotnet nuget add source --name kayer --username your_username --password your_token 
dotnet add package --source kayer --version 2.80.0 Grpc.AspNetCore

About this package

gRPC meta-package for ASP.NET Core

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.

Dependencies

ID Version Target Framework
Grpc.AspNetCore.Server.ClientFactory 2.80.0 net10.0
Google.Protobuf 3.31.1 net10.0
Grpc.Tools 2.80.0 net10.0
Grpc.AspNetCore.Server.ClientFactory 2.80.0 net8.0
Google.Protobuf 3.31.1 net8.0
Grpc.Tools 2.80.0 net8.0
Grpc.AspNetCore.Server.ClientFactory 2.80.0 net9.0
Google.Protobuf 3.31.1 net9.0
Grpc.Tools 2.80.0 net9.0
Details
NuGet
2026-09-09 02:38:23 +03:30
1
The gRPC Authors
52 KiB
Assets (2)
Versions (1) View all
2.80.0 2026-09-09