Open joelverhagen opened 6 years ago
Oh, and I ❤️ the project. Nice work.
I would recommend considering the NuGet.Protocol
package for NuGet API interaction. This will give an object model as well as an abstraction of V2, V3, and file sources.
I would recommend considering the NuGet.Protocol package for NuGet API interaction. This will give an object model as well as an abstraction of V2, V3, and file sources.
That's definitely a great idea, we really shouldn't be doing all of this protocol stuff ourselves!
Hey @joelverhagen, I've just submitted at PR (#13) for this exact thing, would you be able to do a sanity check over my changes to see if I'm using the Nuget libraries correctly? Cheers!
This is because the
registration3
hive is being used, notregistration3-gz-semver2
.For example, consider this project:
There are newer stable versions of NuGet.Frameworks (4.7.0) but they do not appear.
Expected
Actual
The registration base URL should be looked up in the service index using
@type
valueRegistrationsBaseUrl/3.6.0
. API docs for service index: https://docs.microsoft.com/en-us/nuget/api/service-indexI wrote the docs so let me know if you have questions.