Grpc.AspNetCore 2.50.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 Startup.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.
public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        services.AddGrpc();
    }

    public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
    {
        if (env.IsDevelopment())
        {
            app.UseDeveloperExceptionPage();
        }

        app.UseRouting();

        app.UseEndpoints(endpoints =>
        {
            endpoints.MapGrpcService<GreeterService>();
        });
    }
}

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.

Showing the top 20 packages that depend on Grpc.AspNetCore.

Packages
Aspire.Hosting
Core abstractions for the Aspire application model.
Aspire.Hosting
Core abstractions for the .NET Aspire application model.
Aspire.Hosting
Core API and abstractions for the .NET Aspire application model.

Version Last updated
2.76.0 12/21/2025
2.76.0-pre1 12/16/2025
2.71.0 12/21/2025
2.71.0-pre1 4/16/2025
2.70.0 12/21/2025
2.70.0-pre1 2/26/2025
2.67.0 12/21/2025
2.67.0-pre1 10/22/2024
2.66.0 12/21/2025
2.66.0-pre1 9/6/2024
2.65.0 12/21/2025
2.65.0-pre1 7/20/2024
2.64.0 12/21/2025
2.64.0-pre1 7/15/2024
2.63.0 12/21/2025
2.63.0-pre1 5/8/2024
2.62.0 12/21/2025
2.62.0-pre1 3/8/2024
2.61.0 12/21/2025
2.61.0-pre1 2/8/2024
2.60.0 12/21/2025
2.60.0-pre1 12/14/2023
2.59.0 12/21/2025
2.59.0-pre1 10/27/2023
2.58.0 12/21/2025
2.58.0-pre1 10/9/2023
2.57.0 12/21/2025
2.57.0-pre1 8/31/2023
2.56.0 12/21/2025
2.56.0-pre2 8/16/2023
2.56.0-pre1 8/3/2023
2.55.0 12/21/2025
2.55.0-pre1 6/23/2023
2.54.0 12/21/2025
2.54.0-pre1 5/25/2023
2.53.0 12/21/2025
2.53.0-pre1 4/12/2023
2.52.0 12/21/2025
2.52.0-pre1 3/3/2023
2.51.0 12/21/2025
2.51.0-pre1 12/7/2022
2.50.0 12/21/2025
2.50.0-pre1 11/3/2022
2.49.0 12/21/2025
2.49.0-pre1 9/1/2022
2.48.0 12/21/2025
2.48.0-pre1 8/17/2022
2.47.0 12/21/2025
2.47.0-pre1 6/23/2022
2.46.0 12/21/2025
2.46.0-pre1 4/28/2022
2.45.0 12/21/2025
2.45.0-pre1 4/7/2022
2.44.0 12/21/2025
2.44.0-pre1 3/9/2022
2.43.0 12/21/2025
2.43.0-pre1 1/28/2022
2.42.0 12/21/2025
2.42.0-pre1 12/30/2021
2.41.0 12/21/2025
2.41.0-pre1 11/12/2021
2.40.0 12/21/2025
2.40.0-pre1 9/9/2021
2.39.0 12/21/2025
2.39.0-pre1 8/6/2021
2.38.0 12/21/2025
2.38.0-pre1 6/4/2021
2.37.0 12/21/2025
2.37.0-pre1 4/14/2021
2.36.0 12/21/2025
2.36.0-pre1 3/9/2021
2.35.0 12/21/2025
2.35.0-pre1 1/26/2021
2.34.0 12/21/2025
2.34.0-pre1 12/1/2020
2.33.1 10/28/2020
2.33.1-pre1 10/22/2020
2.32.0 10/5/2020
2.32.0-pre1 9/8/2020
2.31.0 12/21/2025
2.31.0-pre2 8/3/2020
2.30.0 7/16/2020
2.30.0-pre1 6/17/2020
2.29.0 12/21/2025
2.29.0-pre1 5/15/2020
2.28.0 12/21/2025
2.28.0-pre2 3/11/2020
2.28.0-pre1 3/3/2020
2.27.0 12/21/2025
2.27.0-pre1 1/24/2020
2.26.0 12/21/2025
2.26.0-pre1 12/10/2019
2.25.0 12/21/2025
2.25.0-pre1 11/1/2019
2.24.0 12/21/2025
2.24.0-pre1 10/9/2019
2.23.2 12/21/2025
0.2.23-pre2 9/6/2019
0.2.23-pre1 8/21/2019
0.1.22-pre3 7/30/2019
0.1.22-pre2 7/2/2019