-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
dotnet Initialization fails with multiple nuget sources #8299
Comments
I don't believe this is a location that nuget looks for when trying to find NuGet.Config files: C:\Program Files (x86)\NuGet\Config. @emgarten to confirm. |
I checked the entire drive and there is a bunch of nuget.config files to be found! They either have the same content as in C:\Program Files (x86)\NuGet\Config or contain only a single node:
Looking at fiddler output I can see the process of dotnet ignoring the other available packageSources. Thanks for the help with this! |
@nasfra run You may need to copy the NuGet.Config file you pasted to |
The details of my setting are:
I don't have a project in my folder yet, since I am trying to create one. Nuget is not in my path, so I just ran the
The
Thank you for your help on this! |
@nasfra remove syncfusion from your packageSources, it looks like it is having problems. From the Fable guide it doesn't look like this is needed for Fable. |
Removing SyncFusion from my sources works in this case, but isn't really practical! I need SyncFusion for my work: visual Studio needs it, build scripts need it, etc. If I remove SyncFusion source form the config file, it is no longer available to all these resources. |
@nasfra this looks like an issue with syncfusion, have you contacted them to find out what might be wrong? |
Closing this issue since this seems to have been resolved and we haven't had activity here in a while. Re-activate if that's not the case. |
Hi, the same error appears on my machine, too: I have the following sources (retrieved by
run
dotnet SDK - 2.0.0 Edit: |
It seems like you have a feed that is not correct and that NuGet cannot find, therefore failing restore. Do you actually need the feed that's failing? |
Hi, thanks for the suggestion. |
I get problem too. |
Yeah, this is happening for me too. <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="CliFallbackFolder" value="C:\Users\Clint\.dotnet\NuGetFallbackFolder" />
<add key="[SECRET]" value="[SECRET]" /> I need the The console output is basically just it retrying loads to find the package in the private feed and getting a 401 and freaking out. This is for the Giraffe template. |
Only workaround I've found for now is to temporarily comment out the offending source and run the install. Obviously the desired behaviour should be that if any feed fails it moves on and tries the others, as I shouldn't need to specify the feed credentials unless I'm absolutely looking for a package in that feed. |
why is this closed? I see also on Linux and mostly in Docker containers. |
This issue is happening on my machine using Visual Studio 2022 LTSC 17.4. I'm not wasting time providing details since this thread is closed. |
Steps to reproduce
I am running dotnet version 1.0.4.
I have the following nuget configuration file in folder C:\Program Files (x86)\NuGet\Config
I am trying to install a new template, Fable.Template. I run the following command
Expected behavior
I would expect the Fable.Template package to be downloaded from the first soure (nuget.org) and installed.
Actual behavior
nuget is ignoring the first source declared in the nuget.config file (the nuget source) and is attempting to download the packages from the second source (syncfusion).
I get the following error
Environment data
dotnet --info
output:.NET Command Line Tools (1.0.4)
Product Information:
Version: 1.0.4
Commit SHA-1 hash: af1e668
Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\1.0.4
The text was updated successfully, but these errors were encountered: