Working with NuGet
CodeScoring.Save implements NuGet v3 API with the /nuget/<project>/<repository>/ prefix. It is compatible with standard dotnet, nuget.exe, Visual Studio, and Rider clients.
Proxy Repository
Specify the full service index URL. For official nuget.org, it is https://api.nuget.org/v3/index.json. Save resolves nested resources (flatcontainer, registration, search) using this index.
Hosted Repository
After creation, the service index is available at https://save.example.com/nuget/<project>/<repository>/v3/index.json.
Client Configuration
dotnet CLI
In nuget.config or NuGet.Config (file name depends on the OS):
Usage:
nuget.exe
Publishing (hosted)
Push packages to a hosted repository through standard clients:
dotnet nuget push supports either an API key (X-NuGet-ApiKey header) or Basic Auth. CodeScoring.Save supports both methods: X-NuGet-ApiKey is classified as nuget_key. Still, Basic Auth with a robot account is recommended for CI/CD. It is consistent with other formats and explicitly records the robot identity in the audit log.
Repository URL Migration
Use case: migrating a NuGet repository from Nexus / Artifactory to CodeScoring.Save.
During migration, <packageSourceCredentials> remains unchanged.
Troubleshooting
Checking the Service Index
The response must contain a resources array with PackageBaseAddress, RegistrationsBaseUrl, SearchQueryService, and other resources.
