net10.0net8.0net9.0
An Aspire hosting integration for extending MongoDB resources with additional management tooling.
Published
Sep 22, 2026
27d ago
Total Downloads
89.9K
89,873
Install
dotnet add package CommunityToolkit.Aspire.Hosting.MongoDB.Extensions --version 13.5.1-beta.767
| Product | Versions |
|---|---|
| .NET |
README
CommunityToolkit.Aspire.Hosting.MongoDB.Extensions library
This integration contains extensions for the MongoDB hosting package for Aspire.
The integration provides support for running DbGate to interact with the MongoDB database.
Getting Started
Install the package
In your AppHost project, install the package using the following command:
dotnet add package CommunityToolkit.Aspire.Hosting.MongoDB.Extensions
Example usage
Then, in the Program.cs file of AppHost, define an MongoDB resource, then call AddMongoDB:
var mongodb = builder.AddMongoDB("mongodb")
.WithDbGate();
Additional Information
https://learn.microsoft.com/dotnet/aspire/community-toolkit/hosting-mongodb-extensions
Feedback & contributing
Changes from Previous Version
No structural changes between v13.5.1-beta.764 and v13.5.1-beta.767.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.The published metadata declares 21 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.