Community.Grpc.SwaggerGen 10.0.0

dotnet add package Community.Grpc.SwaggerGen --version 10.0.0
                    
NuGet\Install-Package Community.Grpc.SwaggerGen -Version 10.0.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="Community.Grpc.SwaggerGen" Version="10.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Community.Grpc.SwaggerGen" Version="10.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Community.Grpc.SwaggerGen" />
                    
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 Community.Grpc.SwaggerGen --version 10.0.0
                    
#r "nuget: Community.Grpc.SwaggerGen, 10.0.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 Community.Grpc.SwaggerGen@10.0.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=Community.Grpc.SwaggerGen&version=10.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Community.Grpc.SwaggerGen&version=10.0.0
                    
Install as a Cake Tool

Community.Grpc.OpenApi

In this commit Microsoft removed the Microsoft.AspNetCore.Grpc.Swagger package. Some of us used it, and others of us had plans to use it.

This repo is meant to continue the life of that package, and even port it to OpenAPI as well.

The initial commit will be the extracted code, verbatim. You can follow through the commit history to see whats been modified.

Notes

Best I can tell, the source libraries were targeting Microsoft.OpenApi 1.0. I've made the choice to start with .NET 10 support, so I bumped Microsoft.OpenApi to the latest 2.x and made the relevant change to support that.

When .NET 11 ships, I'll multitarget and support Microsoft.OpenApi 3.0, but that may just be for the OpenApi version of the package, we'll see when we get there.

Examples

You'll find examples in the examples/ directory, this library is generally a one-liner to get added.

Status

I've freshly copied the code and made the needed modifications to build. There's a few kinks to iron out, but I plan on trying to get the Swagger-based package published as Community.Grpc.SwaggerGen soon™

After that, I'll see about porting it to OpenApi, and then we'll publish Community.Grpc.OpenApi as a separate package.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.0 69 7/23/2026