Is the NuGet.Server going to get support for NuGet v3 API and will it be ported to support multiple targets and thereby also .NET Core?
@danielwertheim , can you provide more details regarding your scenario?
Adding V3 support to NuGet.Server is currently not on our backlog.
@skofman1 honestly I guess it's more of an "will you keep this alive"...? But if V2 is to be supported for a long period it's not an issue. What's more interesting would be .NET Core support so that one easily could spin up "lighter" Docker containers with a custom host using NuGet.Server
@danielwertheim , V2 support is not going anywhere, not on nuget client side nor on nuget.org side.
Regarding rewriting NuGet.Server for .NET core, we have an issue to track it here: https://github.com/NuGet/NuGetGallery/issues/3390
And I see that @tomzo already started the work: https://github.com/ai-traders/liget
Closing this issue as duplicate.
What are the differences and the reason behind v2 and v3 ?
V3 protocol is scalable, stable and performant.
The interaction between client and server is done by using JSON blobs that can be generated statically. Meaning, in order to perform a package restore operation there is no need to access any cloud service and server compute resources are no required. All the data the client needs is exposed in static JSON blobs, and download is made faster using CDN.
Unlike V3, V2 protocol uses nuget,.org website APIs to get information about packages and their download links.
We have recently documented V3 and added detailed instructions (with examples!) on how to consume it: https://docs.microsoft.com/en-us/nuget/api/overview
Any update about the issue? I'd like to know if the latest version has supported the V3 API?
We're trying to migrate our private Nuget.Server on-premise to Azure Artifacts, and apparently the package retrieval script only supports the V3 API.
https://docs.microsoft.com/en-us/azure/devops/artifacts/tutorials/migrate-packages?view=azure-devops
This is really unfortunate because now there isn't a path from a private on-premise NuGet feed into Azure Artifacts.
V3 support would be really nice, or (wishful thinking) a re-imagining of the NuGet.Server package as an ASP.NET Core package/middleware instead.
Hi @qJake, that's great feedback! I opened an issue on Azure DevOps with your suggestion: https://github.com/microsoft/azure-artifacts-migration/issues/3
Also, BaGet has a script that imports packages from NuGet.Server. You should be able to use that to migrate to Azure Artifacts: https://loic-sharma.github.io/BaGet/tools/migrate/#steps
Most helpful comment
@skofman1 honestly I guess it's more of an "will you keep this alive"...? But if V2 is to be supported for a long period it's not an issue. What's more interesting would be .NET Core support so that one easily could spin up "lighter" Docker containers with a custom host using NuGet.Server