Skip to content

Commit aeb04b5

Browse files
authored
Restrict package sources (#8355)
Restrict package sources to those explicitly listed in the `nuget.config` file. This prevents build issues where packages may come from unexpected package sources due to other `nuget.config` files (see [this](https://docs.microsoft.com/en-us/nuget/consume-packages/configuring-nuget-behavior#config-file-locations-and-uses)). Part of https://github.com/NuGet/Engineering/issues/3525
1 parent 91ab6de commit aeb04b5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

NuGet.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<add key="automatic" value="True" />
99
</packageRestore>
1010
<packageSources>
11+
<clear />
1112
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
1213
<add key="nuget-build" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/nuget-build/nuget/v3/index.json" />
1314
</packageSources>

0 commit comments

Comments
 (0)