Skip to content
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

Custom NuGet Sources gives "Error" #104

Open
lisenz opened this issue Oct 9, 2023 · 3 comments
Open

Custom NuGet Sources gives "Error" #104

lisenz opened this issue Oct 9, 2023 · 3 comments

Comments

@lisenz
Copy link

lisenz commented Oct 9, 2023

Hi, I'm trying to setup a custom repository in NuGet Gallery to use my own preview packages, but no matter how I configure the source it keeps showing "Error" when I select that resource...

Tried with
{"name": "doctorz.top","url": "https://nuget.doctorz.top/api/v2"}
but it can not work.

eg:
image

Is there a way to do this?

@terryaney
Copy link

Are credentials required? I've found a workaround for TFS hosted feeds by adding this environment variable:

VSS_NUGET_EXTERNAL_FEED_ENDPOINTS={"endpointCredentials": [{"endpoint":"https://feedurl/nuget/v3/index.json", "password":"usertoken"}]}

I'm hoping it would just use the 'credential manager' but it doesn't seem to do it. Only that environment variable made it work.

@Jomontalvo
Copy link

Hi:
I get the same error adding Telerik source in VS Code for Mac, the source need credentials and I try this json:
{"name": "Telerik","url": "https://nuget.telerik.com/v3/index.json", "authorizationHeader":"Basic xxxxx=="}

¿Anny suggest?

@pcislo
Copy link
Owner

pcislo commented May 12, 2024

Credentials should be provided to Credentials Provider Manager link. I will test this sources and return with some examples of the configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants