NuGet Configuration
This page describes the current OSA Proxy implementation. The archived Java/Spring implementation is available in Archived Java/Spring implementation.
Add a package source:
Equivalent NuGet.Config:
To download a package with dotnet package download in .NET SDK 10, use the same NuGet.Config:
Registration metadata filtering
With scan-manifest: true, OSA Proxy checks versions in registration metadata. The default is remove-blocked-versions: true: blocked versions are removed from the response.
If all versions on an individual registration page are blocked, OSA Proxy returns HTTP 200 with items: [] and count: 0, preserving the original lower and upper bounds. This lets dotnet package download continue searching subsequent pages for an allowed version instead of failing on a blocked page.
With remove-blocked-versions: false, versions remain in metadata as delisted with a deprecation message naming the blocking policy. The manifest is returned even when all versions are blocked. With scan-package enabled, directly downloading a blocked .nupkg remains forbidden.
