Skip to content

Commit f5a6d77

Browse files
authored
Add PSM entry to example nuget.config (#3508)
1 parent 5bc8bf7 commit f5a6d77

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/reference/nuget-config-file.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,17 @@ Below is an example `nuget.config` file that illustrates a number of settings in
496496
<add key="MyRepo - ES" value="https://MyRepo/ES/nuget" />
497497
</packageSources>
498498

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+
</packageSource>
508+
</packageSourceMapping>
509+
499510
<!-- Used to store credentials -->
500511
<packageSourceCredentials />
501512

0 commit comments

Comments
 (0)