The package for controller support that you want is:
Asp.Versioning.Mvc
Don't let the name fool you. There is no package that intentionally supports API versioning for the UI stack.
Keep in mind that ASP.NET Web API is a platform, but sometimes people refer to creating web APIs in ASP.NET Core. These are two different things. The platforms are mostly incompatible and, therefore, have separate implementations. ASP.NET Web API is always referring to the legacy platform and ASP.NET Core always refers to the new platform. They are both different iterations of ASP.NET. If there is some specific documentation that you can link to that is confusing, please point it out so that it can be updated.
The following original packages are now deprecated and will only undergo servicing:
Platform |
Package |
Version |
TFM |
ASP.NET Web API |
Microsoft.AspNet.WebApi.Versioning |
<= 5.x.x |
net45 |
ASP.NET Web API |
Microsoft.AspNet.WebApi.Versioning.ApiExplorer |
<= 5.x.x |
net45 |
ASP.NET Web API |
Microsoft.AspNet.OData.Versioning |
<= 5.x.x |
net45 |
ASP.NET Web API |
Microsoft.AspNet.OData.Versioning.ApiExplorer |
<= 5.x.x |
net45 |
ASP.NET Core |
Microsoft.AspNetCore.Mvc.Versioning |
<= 5.x.x |
netcoreapp3.1, net5.0 |
ASP.NET Core |
Microsoft.AspNetCore.Mvc.ApiExplorer |
<= 5.x.x |
netcoreapp3.1, net5.0 |
ASP.NET Core |
Microsoft.AspNetCore.OData |
<= 5.x.x |
netcoreapp3.1, net5.0 |
ASP.NET Core |
Microsoft.AspNetCore.OData.ApiExplorer |
<= 5.x.x |
netcoreapp3.1, net5.0 |
All new features and platform support will be:
Platform |
Package |
Version |
TFM |
All |
Asp.Versioning.Abstractions |
6.0.0+ |
net6.0+, netstandard1.0, netstandard2.0 |
ASP.NET Web API |
Asp.Versioning.WebApi |
6.0.0+ |
net45, net472 |
ASP.NET Web API |
Asp.Versioning.WebApi.ApiExplorer |
6.0.0+ |
net45, net472 |
ASP.NET Web API |
Asp.Versioning.WebApi.OData |
6.0.0+ |
net45, net472 |
ASP.NET Web API |
Asp.Versioning.WebApi.OData.ApiExplorer |
6.0.0+ |
net45, net472 |
ASP.NET Core |
Asp.Versioning.Http1 |
6.0.0+ |
net6.0+ |
ASP.NET Core |
Asp.Versioning.Mvc2 |
6.0.0+ |
net6.0+ |
ASP.NET Core |
Asp.Versioning.Mvc.ApiExplorer3 |
6.0.0+ |
net6.0+ |
ASP.NET Core |
Asp.Versioning.OData |
6.0.0+ |
net6.0+ |
ASP.NET Core |
Asp.Versioning.OData.ApiExplorer |
6.0.0+ |
net6.0+ |
All |
Asp.Versioning.Http.Client |
6.0.0+ |
net6.0+, netstandard1.1, netstandard2.0 |
[1] Base library that supports Minimal APIs
[2] MVC Core with controller support
[3] Supports exploration of Minimal APIs and controllers