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.
#:package Microsoft.AspNetCore.Mvc.Versioning@5.1.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=Microsoft.AspNetCore.Mvc.Versioning&version=5.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.Mvc.Versioning&version=5.1.0
                    
Install 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.  net10.0 was computed.  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. 
.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 (405)

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

Shesha.Application

Package Description

Aiwins.Rocket.AspNetCore.Mvc

Package Description

GitHub repositories (1)

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

Repository Stars
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 10, 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.
Version Downloads Last Updated
5.1.0 56,032,343 5/23/2023 5.1.0 is deprecated.
5.0.0 113,998,729 2/9/2021 5.0.0 is deprecated.
5.0.0-preview.2 317,581 10/25/2020 5.0.0-preview.2 is deprecated.
5.0.0-preview.1 13,992 10/12/2020 5.0.0-preview.1 is deprecated.
4.2.0 12,672,337 11/3/2020 4.2.0 is deprecated.
4.2.0-rc.2 902 10/25/2020 4.2.0-rc.2 is deprecated.
4.2.0-rc.1 10,624 10/10/2020 4.2.0-rc.1 is deprecated.
4.1.1 32,255,356 12/28/2019 4.1.1 is deprecated.
4.1.0 5,185,136 12/4/2019 4.1.0 is deprecated.
4.0.0 4,040,727 10/30/2019 4.0.0 is deprecated.
4.0.0-preview8.19405.7 887,866 8/15/2019 4.0.0-preview8.19405.7 is deprecated.
3.1.6 2,437,329 8/21/2019 3.1.6 is deprecated.
3.1.5 329,041 8/11/2019 3.1.5 is deprecated.
3.1.4 722,593 7/18/2019 3.1.4 is deprecated.
3.1.3 465,765 7/2/2019 3.1.3 is deprecated.
3.1.2 4,709,597 1/29/2019 3.1.2 is deprecated.
3.1.1 625,257 12/31/2018 3.1.1 is deprecated.
3.1.0 564,014 12/22/2018 3.1.0 is deprecated.
3.0.1 855,313 8/22/2019 3.0.1 is deprecated.
3.0.0 1,991,153 12/17/2018 3.0.0 is deprecated.
Loading failed