We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bc8bf7 commit f5a6d77Copy full SHA for f5a6d77
docs/reference/nuget-config-file.md
@@ -496,6 +496,17 @@ Below is an example `nuget.config` file that illustrates a number of settings in
496
<add key="MyRepo - ES" value="https://MyRepo/ES/nuget" />
497
</packageSources>
498
499
+ <!-- Used to enforce that certain packages only come from specific package sources. -->
500
+ <packageSourceMapping>
501
+ <clear />
502
+ <packageSource key="MyRepo - ES">
503
+ <package pattern="ES.*" />
504
+ </packageSource>
505
+ <packageSource key="NuGet official package source">
506
+ <package pattern="*" />
507
508
+ </packageSourceMapping>
509
+
510
<!-- Used to store credentials -->
511
<packageSourceCredentials />
512
0 commit comments