Skip to content

chore: add NuGet.Config to pin restore to nuget.org only - #99

Merged
artcava merged 1 commit into
developfrom
chore/add-nuget-config
May 28, 2026
Merged

chore: add NuGet.Config to pin restore to nuget.org only#99
artcava merged 1 commit into
developfrom
chore/add-nuget-config

Conversation

@artcava

@artcava artcava commented May 28, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a repo-level NuGet.Config that clears all inherited package sources and
declares only nuget.org as the authoritative feed.

Problem

The global NuGet configuration on the development machine includes other
feed from an unrelated project. Every dotnet restore in this repo contacted
that endpoint — generating NU1900 warnings and slowing down restores on
machines without access to that Azure DevOps organisation.

Change

NuGet.Config at repo root:

<packageSources>
  <clear />
  <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ This PR does not reference an approved issue. Please link to an issue using "Closes #123" in the description.

@artcava
artcava merged commit e7a9d90 into develop May 28, 2026
8 checks passed
@artcava
artcava deleted the chore/add-nuget-config branch May 28, 2026 22:21
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.

1 participant