Repository navigation
fix(nuget): Visual Studio NuGet package search discovery - #500
Merged
Merged
Conversation
M0Rf30
requested changes
Nov 17, 2026
M0Rf30
left a comment
Collaborator
There was a problem hiding this comment.
Thanks. Two things before this can go in:
- Replacing the bare types breaks
TestServiceIndexUsesDerivedOrigin(internal/format/nuget/urls_test.go:139), and drops aliases other clients look for. Please keep the bare entries and add the versioned ones next to them, same@id, as nuget.org does:
{"@id": baseURL + "/v3/query", "@type": "SearchQueryService"},
{"@id": baseURL + "/v3/query", "@type": "SearchQueryService/3.0.0-beta"},
{"@id": baseURL + "/v3/query", "@type": "SearchQueryService/3.0.0-rc"},
{"@id": baseURL + "/v3/autocomplete", "@type": "SearchAutocompleteService"},
{"@id": baseURL + "/v3/autocomplete", "@type": "SearchAutocompleteService/3.0.0-beta"},
{"@id": baseURL + "/v3/autocomplete", "@type": "SearchAutocompleteService/3.0.0-rc"},Not /3.5.0: the endpoint doesn't implement it.
- Add a test that the bare and versioned types resolve to the same URL.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add versioned resource type identifiers for NuGet search and autocomplete services in the NuGet v3 service index.
Motivation
Visual Studio's NuGet Package Manager could not search packages from the OpenArtifact NuGet feed when the service index advertised the unversioned
SearchQueryServiceandSearchAutocompleteServiceresource types.Changing these resource types to their versioned aliases resolves the service discovery issue and allows Visual Studio to use the search and autocomplete endpoints.
Changes
SearchQueryServicetoSearchQueryService/3.0.0-beta.SearchAutocompleteServicetoSearchAutocompleteService/3.0.0-beta.Testing
Compatibility
This change only updates the resource type identifiers advertised in the service index. It does not change the search or autocomplete endpoint implementations, nor does it claim support for the additional capabilities introduced by newer API versions such as
SearchAutocompleteService/3.5.0.