`dotnet new` does not support `--ignore-failed-sources`
See original GitHub issueDescribe the bug
The dotnet new
invocation should honor --ignore-failed-sources
either directly or through ENV
settings of some sort
To Reproduce
Have a nuget feed in your global config that requires integrated auth. Then dotnet new <something>
and you’ll see a failure:
The template "GitHub Actions workflow for .NET Core" was created successfully.
Error: Failed to read package information from NuGet source https://REDACTED/nuget/v3/index.json.
In this scenario where dotnet new is doing a restore immediately after it might be good to default to ignore-failed-sources immediately anyway.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Ignore inaccessible sources w/ dotnet add package
When I try to add a NuGet package via the dotnet cli I get an error that it can't access one of my...
Read more >dotnet restore command - .NET CLI
--ignore-failed-sources Only warn about failed sources if there are packages meeting the version requirement.
Read more >Troubleshoot .NET tool usage issues
There are a few different ways to solve this: Add the --ignore-failed-sources parameter to bypass the error from the private feed and use...
Read more >NETSDK1045: The current .NET SDK does not support ...
This error occurs when the build tools can't find the version of the .NET SDK that's needed to build a project. This is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes @vlada-shubina
--no-update-check
worked!@timheuer the default behavior now (no switch, env var or so is needed) is that nuget feeds reading errors are debug only. Error is logged only if package was not found in any feed.