Grpc.AspNetCore.Web 2.54.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Grpc.AspNetCore.Web --version 2.54.0
                    
NuGet\Install-Package Grpc.AspNetCore.Web -Version 2.54.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.Web" Version="2.54.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Grpc.AspNetCore.Web" Version="2.54.0" />
                    
Directory.Packages.props
<PackageReference Include="Grpc.AspNetCore.Web" />
                    
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.Web --version 2.54.0
                    
#r "nuget: Grpc.AspNetCore.Web, 2.54.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.
#:package Grpc.AspNetCore.Web@2.54.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Grpc.AspNetCore.Web&version=2.54.0
                    
Install as a Cake Addin
#tool nuget:?package=Grpc.AspNetCore.Web&version=2.54.0
                    
Install as a Cake Tool

Grpc.AspNetCore.Web

Grpc.AspNetCore.Web provides middleware that enables ASP.NET Core gRPC services to accept gRPC-Web calls.

In Startup.cs:

public void ConfigureServices(IServiceCollection services)
{
    services.AddGrpc();
    services.AddGrpcWeb(o => o.GrpcWebEnabled = true);
}

public void Configure(IApplicationBuilder app)
{
    app.UseRouting();
    app.UseGrpcWeb();
    app.UseEndpoints(endpoints =>
    {
        endpoints.MapGrpcService<GreeterService>();
    });
}

gRPC-Web can be enabled for all gRPC services by setting GrpcWebOptions.GrpcWebEnabled = true, or enabled on individual services with EnableGrpcWeb():

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

gRPC-Web and streaming

Traditional gRPC over HTTP/2 supports streaming in all directions. gRPC-Web offers limited support for streaming:

  • gRPC-Web browser clients don't support calling client streaming and bidirectional streaming methods.
  • gRPC-Web .NET clients don't support calling client streaming and bidirectional streaming methods over HTTP/1.1.
  • ASP.NET Core gRPC services hosted on Azure App Service and IIS don't support bidirectional streaming.

When using gRPC-Web, we only recommend the use of unary methods and server streaming methods.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  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 was computed.  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 was computed.  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. 
.NET Core netcoreapp3.0 is compatible.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.0

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.

NuGet packages (31)

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

Package Downloads
Sitko.Core.Grpc.Server

Sitko.Core is a set of libraries to help build .NET Core applications fast

DH.Grpc

DH框架Grpc扩展类

Ivy

Build Internal Applications with AI and Pure C#

Girvs.WebFrameWork

Package Description

GamesCheetah.RealtimeEmbeddedServer

Package Description

GitHub repositories (22)

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

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/AspNetCore.Docs
Documentation for ASP.NET Core
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 10, 9, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.
abpframework/abp-samples
Sample solutions built with the ABP Framework
dotnet/dotnet
Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK.
mixcore/mix.core
🚀 A future-proof enterprise web CMS supporting both headless and decoupled approaches. Build any type of app with customizable APIs on ASP.NET Core/.NET Core. Completely open-source and designed for flexibility. Since 2018.
gustavnavar/Grid.Blazor
Grid component with CRUD for Blazor (client-side and server-side) and ASP.NET Core MVC
havit/Havit.Blazor
Free Bootstrap 5 components for ASP.NET Blazor + optional enterprise-level stack for Blazor development (gRPC code-first, layered architecture, localization, auth, ...)
microsoft/RockPaperScissorsLizardSpock
Rock, Paper, Scissors, Lizard, Spock - Sample Application
SteveSandersonMS/BlazeOrbital
Sample application for Blazor WebAssembly on .NET 6
VSadov/Satori
Experimenting with dotnet runtime.
rstropek/Samples
yc-l/yc.boilerplate
YC. Boilerplate is a set of loose coupling, flexible combination, complete functions, convenient development, and reduces the workload of development.
chunliu/AzureDesignStudio
A web app that helps you create the architecture design diagram for your Azure solutions and automatically generate IaC code from it.
thisisnabi/Shortener
Shortener Url as a service in ASP.NET Core and Actor Model
servicetitan/Stl.Fusion.Samples
A collection of samples for Fusion library: https://github.com/servicetitan/Stl.Fusion
sitkoru/Sitko.Core
Sitko.Core is a set of libraries to help build .NET Core applications fast
anuviswan/LearningPoint
A repository for learning different technologies, frameworks, features......
Redth/Maui.UITesting
Experimenting with UI Testing approaches for .NET / MAUI
Version Downloads Last Updated
2.80.0-pre1 279 4/1/2026
2.76.0 448,694 12/19/2025
2.76.0-pre1 1,938 11/13/2025
2.71.0 1,339,982 4/25/2025
2.71.0-pre1 415 4/16/2025
2.70.0 373,056 3/10/2025
2.70.0-pre1 491 2/26/2025
2.67.0 1,056,212 11/21/2024
2.67.0-pre1 683 10/22/2024
2.66.0 486,781 9/20/2024
2.66.0-pre1 360 9/6/2024
2.65.0 401,933 7/27/2024
2.65.0-pre1 277 7/20/2024
2.64.0 63,559 7/19/2024
2.64.0-pre1 242 7/15/2024
2.63.0 543,753 5/24/2024
2.63.0-pre1 19,622 5/8/2024
2.62.0 511,050 3/29/2024
2.62.0-pre1 907 3/8/2024
2.54.0 71,170 6/15/2023
Loading failed