Microsoft.AspNetCore.Mvc.Versioning 5.1.0

Suggested Alternatives

Asp.Versioning.Mvc

Additional Details

A newer package is available as of August 2022. While this package will continue to receive critical bug fixes, we strongly encourage you to upgrade. See the migration guide at https://github.com/dotnet/aspnet-api-versioning/wiki/Migration for more details.

dotnet add package Microsoft.AspNetCore.Mvc.Versioning --version 5.1.0
                    
NuGet\Install-Package Microsoft.AspNetCore.Mvc.Versioning -Version 5.1.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="Microsoft.AspNetCore.Mvc.Versioning" Version="5.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Versioning" Version="5.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" />
                    
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 Microsoft.AspNetCore.Mvc.Versioning --version 5.1.0
                    
#r "nuget: Microsoft.AspNetCore.Mvc.Versioning, 5.1.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.
#addin nuget:?package=Microsoft.AspNetCore.Mvc.Versioning&version=5.1.0
                    
Install Microsoft.AspNetCore.Mvc.Versioning as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.Mvc.Versioning&version=5.1.0
                    
Install Microsoft.AspNetCore.Mvc.Versioning as a Cake Tool
📣 Now Asp.Versioning.Mvc. See the announcement.

ASP.NET API versioning gives you a powerful, but easy-to-use method for adding API versioning semantics to your new and existing REST services built with ASP.NET Core MVC. The API versioning extensions define simple metadata attributes and conventions that you use to describe which API versions are implemented by your services.

This package contains the primary abstractions library for API versioning that can be used to create server and client-based applications.

Commonly Used Types

  • Microsoft.AspNetCore.Mvc.ApiVersion
  • Microsoft.AspNetCore.Mvc.ApiVersionAttribute
  • Microsoft.AspNetCore.Mvc.ControllerNameAttribute
  • Microsoft.AspNetCore.Mvc.MapToApiVersionAttribute
  • Microsoft.AspNetCore.Mvc.ReportApiVersionsAttribute
  • Microsoft.AspNetCore.Mvc.Versioning.ApiVersionModel
  • Microsoft.AspNetCore.Mvc.Versioning.ApiVersioningOptions
  • Microsoft.AspNetCore.Mvc.Versioning.ApiVersionReader
  • Microsoft.AspNetCore.Mvc.Versioning.IApiVersionNeutral
  • Microsoft.AspNetCore.Mvc.Versioning.IApiVersionParameterSource
  • Microsoft.AspNetCore.Mvc.Versioning.IApiVersionProvider
  • Microsoft.AspNetCore.Mvc.Versioning.IApiVersionSelector
  • Microsoft.AspNetCore.Mvc.Versioning.IReportApiVersions
  • Microsoft.AspNetCore.Mvc.Versioning.QueryStringApiVersionReader

Release Notes

https://github.com/dotnet/aspnet-api-versioning/releases/tag/v5.1.0

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

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.

NuGet packages (372)

Showing the top 5 NuGet packages that depend on Microsoft.AspNetCore.Mvc.Versioning:

Package Downloads
Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer

ASP.NET Core MVC API explorer functionality for discovering metadata such as the list of API-versioned controllers and actions, and their URLs and allowed HTTP methods.

Microsoft.AspNetCore.OData.Versioning

A service API versioning library for Microsoft ASP.NET Core and OData v4.0.

Shesha.Framework

Package Description

Elsa.Server.Api

Elsa is a set of workflow libraries and tools that enable lean and mean workflowing capabilities in any .NET Core application. This package provides API endpoints to interact with the workflow host.

Shesha.Application

Package Description

GitHub repositories (46)

Showing the top 20 popular GitHub repositories that depend on Microsoft.AspNetCore.Mvc.Versioning:

Repository Stars
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 10 Preview 3, 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.
domaindrivendev/Swashbuckle.AspNetCore
Swagger tools for documenting API's built on ASP.NET Core
ivanpaulovich/clean-architecture-manga
:cyclone: Clean Architecture with .NET6, C#10 and React+Redux. Use cases as central organizing structure, completely testable, decoupled from frameworks
fullstackhero/blazor-starter-kit
Clean Architecture Template for Blazor WebAssembly Built with MudBlazor Components.
AppMetrics/AppMetrics
App Metrics is an open-source and cross-platform .NET library used to record and report metrics within an application.
openbullet/OpenBullet2
OpenBullet reinvented
ivaylokenov/MyTested.AspNetCore.Mvc
Fluent testing library for ASP.NET Core MVC.
iammukeshm/CleanArchitecture.WebApi
An implementation of Clean Architecture for ASP.NET Core 3.1 WebAPI. Built with loosely coupled architecture and clean-code practices in mind.
Amitpnk/Onion-architecture-ASP.NET-Core
WhiteApp API solution template which is built on Onion Architecture with all essential feature using .NET 8!
dotnetzoom/AspNetCore-WebApi-Course
🥇 Professional REST API design with ASP.NET Core WebAPI
ntxinh/AspNetCore-DDD
Full ASP.NET Core 8.0 LTS application with DDD, CQRS and Event Sourcing
stratisproject/StratisBitcoinFullNode
Bitcoin full node in C#
FabianGosebrink/ASPNETCore-WebAPI-Sample
This is a sample ASP.NET Core WebAPI
csharpfritz/csharp_with_csharpfritz
Show notes, slides, and samples from the CSharp with CSharpFritz show
getsentry/sentry-dotnet
Sentry SDK for .NET
chummer5a/chummer5a
Character generator for Shadowrun 5th edition
iammukeshm/OnionArchitecture
The onion architecture, introduced by Jeffrey Palermo, overcomes the issues of the layered architecture with great ease. With Onion Architecture, the game-changer is that the Domain Layer (Entities and Validation Rules that are common to the business case ) is at the Core of the Entire Application. This means higher flexibility and lesser coupling. In this approach, we can see that all the Layers are dependent only on the Core Layers.
Harsha-Global/AspNetCore-Harsha
Asp.Net Core Ultimate Guide course | Web University by Harsha
SaiGonSoftware/Awesome-CMS-Core
Awesome CMS Core is an open source CMS built using ASP.Net Core & ReactJS with module seperation concern in mind and provide lastest trend of technology like .Net Core, React, Webpack, SASS, Background Job, Message Queue.
itlibrium/DDD-starter-dotnet
Sample implementation and comparison of various approaches to building DDD applications. Useful as a baseline to quickly start a DDD dot net project.
Version Downloads Last updated
5.1.0 33,365,055 5/23/2023 5.1.0 is deprecated.
5.0.0 100,172,830 2/9/2021 5.0.0 is deprecated.
5.0.0-preview.2 300,104 10/25/2020 5.0.0-preview.2 is deprecated.
5.0.0-preview.1 13,469 10/12/2020 5.0.0-preview.1 is deprecated.
4.2.0 11,890,527 11/3/2020 4.2.0 is deprecated.
4.2.0-rc.2 674 10/25/2020 4.2.0-rc.2 is deprecated.
4.2.0-rc.1 8,795 10/10/2020 4.2.0-rc.1 is deprecated.
4.1.1 30,251,155 12/28/2019 4.1.1 is deprecated.
4.1.0 4,734,167 12/4/2019 4.1.0 is deprecated.
4.0.0 3,781,156 10/30/2019 4.0.0 is deprecated.
4.0.0-preview8.19405.7 864,419 8/15/2019 4.0.0-preview8.19405.7 is deprecated.
3.1.6 2,353,866 8/21/2019 3.1.6 is deprecated.
3.1.5 309,133 8/11/2019 3.1.5 is deprecated.
3.1.4 697,456 7/18/2019 3.1.4 is deprecated.
3.1.3 452,801 7/2/2019 3.1.3 is deprecated.
3.1.2 4,574,179 1/29/2019 3.1.2 is deprecated.
3.1.1 602,197 12/31/2018 3.1.1 is deprecated.
3.1.0 545,217 12/22/2018 3.1.0 is deprecated.
3.0.1 793,381 8/22/2019 3.0.1 is deprecated.
3.0.0 1,767,968 12/17/2018 3.0.0 is deprecated.
3.0.0-beta2 39,789 11/9/2018 3.0.0-beta2 is deprecated.
3.0.0-beta1 158,463 7/27/2018 3.0.0-beta1 is deprecated.
2.3.0 5,752,648 6/6/2018 2.3.0 is deprecated.
2.2.0 1,238,865 4/1/2018 2.2.0 is deprecated.
2.1.0 2,702,638 1/6/2018 2.1.0 is deprecated.
2.0.0 794,046 8/31/2017 2.0.0 is deprecated.
2.0.0-preview2-final 19,158 7/8/2017 2.0.0-preview2-final is deprecated.
1.2.1 139,004 7/7/2017 1.2.1 is deprecated.
1.2.0 55,396 7/3/2017 1.2.0 is deprecated.
1.2.0-beta1 2,600 6/29/2017 1.2.0-beta1 is deprecated.
1.1.0-rc2 2,940 5/26/2017 1.1.0-rc2 is deprecated.
1.1.0-rc1 6,055 5/12/2017 1.1.0-rc1 is deprecated.
1.1.0-beta2 14,021 4/18/2017 1.1.0-beta2 is deprecated.
1.1.0-beta1 22,457 3/10/2017 1.1.0-beta1 is deprecated.
1.0.3 228,675 11/27/2016 1.0.3 is deprecated.
1.0.2 52,030 11/9/2016 1.0.2 is deprecated.
1.0.1 5,496 11/7/2016 1.0.1 is deprecated.
1.0.0 111,248 9/19/2016 1.0.0 is deprecated.
1.0.0-rc2 2,658 9/1/2016 1.0.0-rc2 is deprecated.
1.0.0-rc1 2,978 8/11/2016 1.0.0-rc1 is deprecated.
1.0.0-beta1 3,219 7/27/2016 1.0.0-beta1 is deprecated.