Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/reference/nuget-config-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,16 @@ Below is an example `nuget.config` file that illustrates a number of settings in
<add key="MyRepo - ES" value="https://MyRepo/ES/nuget" />
</packageSources>

<!-- Used to enforce that certain packages only come from specific package sources. -->
<packageSourceMapping>
<packageSource key="MyRepo - ES">
<package pattern="ES.*" />
</packageSource>
<packageSource key="NuGet official package source">
<package pattern="*" />
</packageSource>
Comment on lines +501 to +506
Copy link

Copilot AI Nov 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation of the packageSourceMapping child elements is inconsistent with the rest of the example configuration file. The <packageSource> and <package> elements should use 4 spaces of indentation to match the indentation style used in other sections like <config> and <packageSources>. Currently, these lines appear to use 2 spaces instead of 4.

Suggested change
<packageSource key="MyRepo - ES">
<package pattern="ES.*" />
</packageSource>
<packageSource key="NuGet official package source">
<package pattern="*" />
</packageSource>
<packageSource key="MyRepo - ES">
<package pattern="ES.*" />
</packageSource>
<packageSource key="NuGet official package source">
<package pattern="*" />
</packageSource>

Copilot uses AI. Check for mistakes.
</packageSourceMapping>

<!-- Used to store credentials -->
<packageSourceCredentials />

Expand Down