MDev.Dotnet.AspNetCore 1.19.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package MDev.Dotnet.AspNetCore --version 1.19.0
                    
NuGet\Install-Package MDev.Dotnet.AspNetCore -Version 1.19.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="MDev.Dotnet.AspNetCore" Version="1.19.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MDev.Dotnet.AspNetCore" Version="1.19.0" />
                    
Directory.Packages.props
<PackageReference Include="MDev.Dotnet.AspNetCore" />
                    
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 MDev.Dotnet.AspNetCore --version 1.19.0
                    
#r "nuget: MDev.Dotnet.AspNetCore, 1.19.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 MDev.Dotnet.AspNetCore@1.19.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=MDev.Dotnet.AspNetCore&version=1.19.0
                    
Install as a Cake Addin
#tool nuget:?package=MDev.Dotnet.AspNetCore&version=1.19.0
                    
Install as a Cake Tool

MDev.Dotnet

Production-ready helpers for building .NET web APIs and integrating Azure services with less boilerplate.

Quality Gate Status .NET NuGet NuGet NuGet NuGet

📚 Browse the MDev.Dotnet documentation

Highlight

MDev.Dotnet packages turn common ASP.NET Core and Azure integration tasks into consistent, dependency-injection-friendly registrations and services.

Explain

Choose only the helpers your application needs:

Package Capabilities Documentation
MDev.Dotnet.AspNetCore Controllers, configuration binding, API versioning, OpenAPI, and route prefixes Read the guide
MDev.Dotnet.Azure.ContainerApps OpenTelemetry, Container Apps authentication, and Dapr async operations Read the guide
MDev.Dotnet.Azure.CosmosDb Entity Framework Core Cosmos DB registration with token credentials Read the guide
MDev.Dotnet.Azure.StorageAccount Blob persistence, SAS access, and keyed queue clients Read the guide

Resources

Operation

Install the package that matches your use case:

dotnet add package MDev.Dotnet.AspNetCore

Replace the package name with any package listed above. The getting-started guide and each package guide contain current registration, configuration, and usage examples.


Packages

MDev.Dotnet.AspNetCore

Highlight

Build consistent ASP.NET Core APIs without repeating standard setup.

Explain

Register controllers and API versions, bind strongly typed configuration, configure OpenAPI, and apply route prefixes through focused extension methods.

Main APIs
API Purpose
RegisterControllers<T>() Adds controllers, API versioning, lowercase URLs, and model-validation logging
RegisterConfiguration() Loads JSON configuration and environment variables
BindConfiguration<T>() Binds and registers a required configuration section
RegisterOpenApi() Registers OpenAPI and optionally rewrites or removes server URLs
AddRoutesPrefix() Applies a path base, such as /api, to the application
GetErrors() Returns model-state errors as a single message
Resources
Operation
dotnet add package MDev.Dotnet.AspNetCore

Continue with setup and examples.

MDev.Dotnet.Azure.ContainerApps

Highlight

Add observability, authentication context, and asynchronous Dapr workflows to Azure Container Apps.

Explain

Configure OpenTelemetry for Azure Monitor or OTLP, access the authenticated Container Apps principal, and handle Dapr pub/sub operations.

Main APIs
API Purpose
RegisterOpenTelemetry() Configures logs, metrics, and traces for Azure Monitor or OTLP
GetUserId() / GetUserFullName() Reads identity values supplied by Container Apps authentication
GetClaims() Decodes the authenticated principal's claims
GetUserValue() Reads a named Container Apps authentication header
AsyncOperationRequestsService Dispatches Dapr operation messages to matching handlers
IAsyncOperationRequestMessageHandler Defines a handler for an asynchronous operation
[RequireDaprApiToken] Validates the dapr-api-token request header
Resources
Operation
dotnet add package MDev.Dotnet.Azure.ContainerApps

Continue with setup and examples.

MDev.Dotnet.Azure.CosmosDb

Highlight

Connect Entity Framework Core contexts to Azure Cosmos DB with secure Azure credentials.

Explain

Register a Cosmos DB DbContext from application configuration and authenticate with an Azure TokenCredential, including managed identity.

Main APIs
API Purpose
RegisterCosmosDb<T>(TokenCredential) Registers an EF Core Cosmos DB context from the CosmosDb configuration section
RegisterCosmosDb<T>(IConfiguration, TokenCredential) Provides the same registration from an IServiceCollection
Resources
Operation
dotnet add package MDev.Dotnet.Azure.CosmosDb

Continue with setup and examples.

MDev.Dotnet.Azure.StorageAccount

Highlight

Use Azure Blob Storage and Queue Storage through ready-to-inject services.

Explain

Register storage clients with Azure credentials, manage blobs and SAS access through PersistentService, and resolve configured queue clients by key.

Main APIs
API Purpose
RegisterAzureStorage() Registers blob services and keyed queue clients from configuration
PersistentService Creates and lists containers and uploads, downloads, copies, or deletes blobs
RetreiveBlobUriAsync() / RetreiveBlobsUriAsync() Creates read-only SAS URIs for blobs
QueuesService.SendMessageAsync<T>() Sends one message to a configured queue
QueuesService.SendMessagesAsync<T>() Distributes multiple messages across configured queues
Resources
Operation
dotnet add package MDev.Dotnet.Azure.StorageAccount

Continue with setup and examples.


Additional Resources

Support / Contribute

If you have a question, problem, or suggestion, create an issue or fork the project and create a pull request.

See the contributing guide for build and documentation guidance.

Build Status

Quality Gate Status .NET

License

This project is licensed under the terms specified in the LICENSE file.


Made with ❤️ for the .NET Community

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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 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
1.22.0 95 9/9/2026
1.21.0 86 9/9/2026
1.20.0 480 8/25/2026
1.19.0 114 8/25/2026
1.18.0 791 6/21/2026
1.18.0-preview-001 191 6/17/2026
1.17.0 240 4/27/2026
1.17.0-preview-001 119 4/22/2026
1.16.0 124 4/17/2026
1.15.0 122 4/17/2026
1.15.0-preview-002 113 4/17/2026
1.15.0-preview-001 116 4/17/2026
1.14.0 432 2/8/2026
1.13.0 463 12/10/2025
1.13.0-preview-080 452 12/10/2025
1.12.0 218 11/24/2025
1.12.0-preview-078 301 11/13/2025
1.11.0 1,834 8/3/2025
1.11.0-preview-076 187 7/29/2025
1.10.0 623 7/22/2025
Loading failed