How to block default Public nuget repository nuget.org for dotnet builds
i am trying to block default public Nuget Repository for all builds , here the config tried testing but could not succeed.
But when i try to run dotnet restore . it still pointing to both nexus and nuget.org
2026-03-19T11:33:12.9932936Z info : Adding PackageReference for package 'Newtonsoft.Json' into project '/mnt/vss/_work/1/s/NuGetSourceTest/NuGetSourceTest.csproj'.
2026-03-19T11:33:13.3623538Z info : GET https://nexus.sample.com/repository/nuget.org-proxy-v3/v3/registration/5/newtonsoft.json/index.json
2026-03-19T11:33:13.3624203Z info : GET https://api.nuget.org/v3/registration5-gz-semver2/newtonsoft.json/index.json
2026-03-19T11:33:13.3752863Z info : OK https://nexus.sample.com/repository/nuget.org-proxy-v3/v3/registration/5/newtonsoft.json/index.json 12ms
2026-03-19T11:33:13.4715883Z info : OK https://api.nuget.org/v3/registration5-gz-semver2/newtonsoft.json/index.json 109ms
2026-03-19T11:33:13.5649146Z info : Restoring packages for /mnt/vss/_work/1/s/NuGetSourceTest/NuGetSourceTest.csproj...
2026-03-19T11:33:13.6195715Z info : GET https://api.nuget.org/v3-flatcontainer/newtonsoft.json/index.json
2026-03-19T11:33:13.6457833Z info : GET https://nexus.sample.com/repository/nuget.org-proxy-v3/v3/content/0/newtonsoft.json/index.json
2026-03-19T11:33:13.6572790Z info : OK https://nexus.sample.com/repository/nuget.org-proxy-v3/v3/content/0/newtonsoft.json/index.json 11ms
2026-03-19T11:33:13.6746362Z info : GET https://nexus.sample.com/repository/nuget.org-proxy-v3/v3/content/0/newtonsoft.json/13.0.4/newtonsoft.json.13.0.4.nupkg
2026-03-19T11:33:13.6857291Z info : OK https://nexus.sample.com/repository/nuget.org-proxy-v3/v3/content/0/newtonsoft.json/13.0.4/newtonsoft.json.13.0.4.nupkg 11ms
2026-03-19T11:33:13.7315254Z info : OK https://api.nuget.org/v3-flatcontainer/newtonsoft.json/index.json 111ms
2026-03-19T11:33:14.2220303Z info : Installed Newtonsoft.Json 13.0.4 from
2026-03-19T11:33:14.2353684Z info : GET https://api.nuget.org/v3/vulnerabilities/index.json
2026-03-19T11:33:14.2377678Z info : GET https://api.nuget.org/v3/vulnerabilities/index.json
2026-03-19T11:33:14.2378204Z info : OK https://api.nuget.org/v3/vulnerabilities/index.json 2ms
2026-03-19T11:33:14.2429360Z info : GET https://api.nuget.org/v3-vulnerabilities/2026.03.19.05.41.43/vulnerability.base.json
2026-03-19T11:33:14.2437575Z info : GET https://api.nuget.org/v3-vulnerabilities/2026.03.19.05.41.43/2026.03.19.05.41.43/vulnerability.update.json