Skip to content

Conversation

@nohwnd
Copy link
Member

@nohwnd nohwnd commented Oct 22, 2025

Pipeline setting ensures that nuget.org access is completely blocked. To avoid restoring packages from there, even in tests.

To try this locally you can add this to hosts file (C:\Windows\System32\drivers\etc\hosts

127.0.0.1 api.nuget.org

The reference assemblies default restore will cache the restored packages in users temp, debug into ResolveAsync method, you will see where it grabs it from in ResolveAsyncCore.

Changes are not observable on the normal PR pipeline, but I've run build on internal pipeline. Unfortunately there is no public infra for 1es so we won't be able to get this into PR build as well, but it should be rare that we see this fail.

@nohwnd
Copy link
Member Author

nohwnd commented Oct 22, 2025

@Evangelink Evangelink merged commit b349d2e into main Oct 23, 2025
9 checks passed
@Evangelink Evangelink deleted the no-nuget-access branch October 23, 2025 09:05
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

Successfully merging this pull request may close these issues.

4 participants