-
Notifications
You must be signed in to change notification settings - Fork 684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't list packages from BaGet #455
Comments
|
This was referenced Feb 8, 2020
Okay problem 2 will be fixed by the next release! By the way, here's the easiest way to get a the list of versions: var packageName = [PackageName];
var client = new NuGetClient("http://[bageturl]/v3/index.json");
var versions = await client.ListPackageVersionsAsync(packageName, cancellationToken); |
Reopening this as I haven't tagged a release with the fix yet. |
It is working fine for me with 0.3.0-preview3. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I'm trying to get a list of versions of one package in my local feed (basically to clean up pre-release ones) but with no luck.
I've tried so far:
Both do not work.
To Reproduce
nuget.exe list [PackageName] -AllVersions -Source "http://[bageturl]/v3/index.json"
OR
2.1. Create a console app with code from SDK documentation:
2.2. Run it.
Expected behavior
A list of packages is returned
List of '[PackageName]' package metadata is printed to console.
Actual behavior
var items = await client.GetPackageMetadataAsync(packageName);
Additional context
BaGet:
Sample code is built with the same .NET Core and VS versions.
Using latest BaGet.Protocol package (https://www.nuget.org/packages/BaGet.Protocol/0.2.0-preview1)
Nuget v5.4.0
The text was updated successfully, but these errors were encountered: