Skip to content

C#: Improve BMN feed checking & handling.#21684

Draft
michaelnebel wants to merge 20 commits intogithub:mainfrom
michaelnebel:csharp/improve-reachability-checks
Draft

C#: Improve BMN feed checking & handling.#21684
michaelnebel wants to merge 20 commits intogithub:mainfrom
michaelnebel:csharp/improve-reachability-checks

Conversation

@michaelnebel
Copy link
Copy Markdown
Contributor

@michaelnebel michaelnebel commented Apr 9, 2026

In this PR we make some improvements to the C# NuGet feed check and use of private registries.

The primary change(s) in this PR

  1. Explicitly provide a list of NuGet sources for dotnet restore (both for projects and solutions) which overrides the use of nuget.config files (unless NuGet feed reachability check is disabled and no private registries are configured).
  2. In case private registries are configured, we always provide a specific list of feeds to dotnet restore to make sure that we include the private registries. This list now includes all feeds or reachable feeds as well (depending on whether we check NuGet feed reachability).
  3. Explicit feeds are always used unless there is a timeout when trying to reach them. Inherited feeds (eg. system wide NuGet configurations) are only included, if they are reachable (unless NuGet feed check is disabled).

The documentation for the -s (NuGet source) can be seen here.

@github-actions github-actions bot added the C# label Apr 9, 2026
@michaelnebel michaelnebel force-pushed the csharp/improve-reachability-checks branch from 958f01a to 0451894 Compare April 10, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants