Grpc.AspNetCore.Web 2.46.0 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved

.NET 5.0 .NET Core 3.0
Install-Package Grpc.AspNetCore.Web -Version 2.46.0
dotnet add package Grpc.AspNetCore.Web --version 2.46.0
<PackageReference Include="Grpc.AspNetCore.Web" Version="2.46.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Grpc.AspNetCore.Web --version 2.46.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Grpc.AspNetCore.Web, 2.46.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Grpc.AspNetCore.Web as a Cake Addin
#addin nuget:?package=Grpc.AspNetCore.Web&version=2.46.0

// Install Grpc.AspNetCore.Web as a Cake Tool
#tool nuget:?package=Grpc.AspNetCore.Web&version=2.46.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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();
});

Links

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp3.0 netcoreapp3.1
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.0

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.

NuGet packages (8)

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

Package Downloads
Girvs.WebFrameWork

Package Description

Havit.Blazor.Grpc.Server The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

HAVIT Blazor stack - gRPC Support - server-side

MF40.Silo

Orleans Silo

ElsaDashboard.Backend

Elsa is a set of workflow libraries and tools that enable lean and mean workflowing capabilities in any .NET Core application. This package provides dashboard backend services exposed as gRPC endpoints.

Girvs.Grpc

Package Description

GitHub repositories (7)

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

Repository Stars
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 2.1, 2.2, 3.1, 5.0, 6.0 and 7.0 projects you can use. Readme contains explanations on all projects.
grpc/grpc-dotnet
gRPC for .NET
microsoft/RockPaperScissorsLizardSpock
Rock, Paper, Scissors, Lizard, Spock - Sample Application
SteveSandersonMS/BlazeOrbital
Sample application for Blazor WebAssembly on .NET 6
yc-l/yc.boilerplate
YC. Boilerplate is a set of loose coupling, flexible combination, complete functions, convenient development, and reduces the workload of development.
Version Downloads Last updated
2.46.0 2,982 5/13/2022
2.46.0-pre1 124 4/28/2022
2.45.0 21,450 4/19/2022
2.45.0-pre1 251 4/7/2022
2.44.0 28,891 3/17/2022
2.44.0-pre1 122 3/9/2022
2.43.0 21,412 2/25/2022
2.43.0-pre1 953 1/28/2022
2.42.0 58,034 1/19/2022
2.42.0-pre1 1,581 12/30/2021
2.41.0 98,701 12/7/2021
2.41.0-pre1 784 11/12/2021
2.40.0 133,949 10/5/2021
2.40.0-pre1 1,313 9/9/2021
2.39.0 71,129 8/18/2021
2.39.0-pre1 948 8/6/2021
2.38.0 186,765 6/11/2021
2.38.0-pre1 262 6/4/2021
2.37.0 99,255 4/20/2021
2.37.0-pre1 191 4/14/2021
2.36.0 70,935 3/17/2021
2.36.0-pre1 579 3/9/2021
2.35.0 41,434 2/4/2021
2.35.0-pre1 335 1/26/2021
2.34.0 78,095 12/11/2020
2.34.0-pre1 334 12/1/2020
2.33.1 33,026 10/28/2020
2.33.1-pre1 340 10/22/2020
2.32.0 7,240 10/5/2020
2.32.0-pre1 1,350 9/8/2020
2.31.0 33,576 8/14/2020
2.31.0-pre2 403 8/3/2020
2.30.0 12,771 7/16/2020
2.30.0-pre1 1,111 6/17/2020
2.29.0 57,272 5/27/2020
2.29.0-pre1 1,857 5/15/2020
2.28.0-pre2 21,917 3/11/2020
2.28.0-pre1 2,941 3/3/2020
2.27.0-pre1 8,485 1/24/2020