Skip to content

Commit f616b49

Browse files
committed
add packageSourceMapping
1 parent 0364417 commit f616b49

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

NuGet.config

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,20 @@
55
<!-- Coverlet nightly build feed -->
66
<add key="coverletNightly" value="https://pkgs.dev.azure.com/tonerdo/coverlet/_packaging/coverlet-nightly/nuget/v3/index.json" />
77
<!-- dotnet-libraries feed -->
8+
<!-- https://dev.azure.com/dnceng/public/_artifacts/feed/dotnet-libraries/NuGet/System.CommandLine/versions -->
89
<add key="dotnet-libraries" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-libraries/nuget/v3/index.json" />
910
<!-- Default nuget feed -->
10-
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
11+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
1112
</packageSources>
13+
14+
<!-- Define mappings by adding package patterns beneath the target source. -->
15+
<packageSourceMapping>
16+
<!-- key value for <packageSource> should match key values from <packageSources> element -->
17+
<packageSource key="nuget.org">
18+
<package pattern="*" />
19+
</packageSource>
20+
<packageSource key="dotnet-libraries">
21+
<package pattern="System.CommandLine" />
22+
</packageSource>
23+
</packageSourceMapping>
1224
</configuration>

0 commit comments

Comments
 (0)