✅ Which Nuget ASP.NET Core Versioning package to choose?
Hi, I need to do some versioning on an API with ASP.NET Core (.NET 6), but I don't know which package to choose.
I'd be tempted to install the "ASP.NET Web API" package, but I don't quite understand when there's an HttpConfiguration (https://github.com/dotnet/aspnet-api-versioning/wiki/New-Services-Quick-Start#aspnet-web-api) in the Program.cs.
When I look at the example, I get the impression that it uses an older version of ASP.NET Core.
GitHub
New Services Quick Start
Provides a set of libraries which add service API versioning to ASP.NET Web API, OData with ASP.NET Web API, and ASP.NET Core. - dotnet/aspnet-api-versioning
2 Replies
It does seem to be an older version, yes
Nowadays, it would be
builder.Configuration.AddApiVersioning()
in Program.cs
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View