Sonatype Nexus Repository and Microsoft NuGet Gallery: OData Changes for NuGet V2
By Brent Kostak
2 minute read time
Microsoft has officially announced changes to the NuGet Gallery. The NuGet V2 protocol uses a query mechanism called OData. Microsoft plans to deprecate certain OData queries, which began with a limited test schedule in November, before permanent deprecation in early 2021.
"From our Visual Studio NuGet package restore duration, we see that V3 is about 19% faster on average than V2. The median duration is only marginally better in V3, but customers with less ideal network conditions have a much better experience on V3." - Microsoft NuGet Team
NuGet V2 Deprecation Plans
Sonatype testing was performed using both the NuGet CLI and Visual Studio and shows that Sonatype Nexus Repository 2 and Sonatype Nexus Repository 3 continue to work with these changes. Sonatype Nexus Repository Manager relays OData queries generated by developer tools, but while NuGet client tools will continue to run successfully, custom scripts may be affected.
Sonatype Nexus Repository users can avoid V2 protocol errors by upgrading to NuGet V3.
As Microsoft plans to deprecate only endpoints that are not officially supported in V2, we recommend you test your environment and specific client versions to ensure no disruption to your workflows. Microsoft plans to share this schedule with our product teams, so we can effectively communicate these brown-out periods with Sonatype Nexus Repository users and support teams ahead of time. If your teams use NuGet V2 in your development, please review the changes to understand how you may be affected.
NuGet V3 Performance Improvements
To guarantee stability in the long run, Sonatype recommends moving your engineering teams over to the Nuget V3 API which also brings many performance benefits: Sonatype Platform product team testing for performance of NuGet V3 over V2 shows 25-50% faster build times and about 50% reduction in Nexus Repository memory usage.
If you have any questions, please leave a comment below or connect with our product teams via the Sonatype community.
Brent is the Director of Product Marketing connecting developers and DevOps communities to Sonatype Nexus tools and technologies.
Explore All Posts by Brent KostakTags
Try Nexus Repository Free Today
Sonatype Nexus Repository is the world’s most trusted artifact repository manager. Experience the difference and download Community Edition for free.