Skip to content

Commit

Permalink
Use nuget.org for publicly available packages
Browse files Browse the repository at this point in the history
When package dependency versions change, the libman package feed (hosted
on the azure-public ADO instance) is not writable by non-Microsoft
employees.  This can lead to issues building the solution when
adding/updating references, especially including when runtime packages
update from SDK servicing.

This change fetches any publicly available packages from nuget.org,
which makes it easier to support new packages or package upgrades.

Having multiple package sources is not a risk when using
packageSourceMappings.

Resolves aspnet#728
  • Loading branch information
jimmylewis committed Dec 19, 2024
1 parent dadf419 commit 7d43f68
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions nuget.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,30 @@
<configuration>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="libman" value="https://pkgs.dev.azure.com/azure-public/vswebtools/_packaging/libman/nuget/v3/index.json" />
</packageSources>
<packageSourceMapping>
<packageSource key="libman">
<package pattern="Microsoft.Extensions.CommandLineUtils.Sources" />
<package pattern="Microsoft.Test.Apex.*" />
<package pattern="Microsoft.VisualStudio.Internal.MicroBuild" />
<package pattern="Microsoft.WebTools.Languages.*" />
</packageSource>
<packageSource key="nuget.org">
<package pattern="Castle.Core" />
<package pattern="MessagePack" />
<package pattern="MessagePack.*" />
<package pattern="Microsoft.*" />
<package pattern="Moq*" />
<package pattern="MSTest.*" />
<package pattern="Newtonsoft.Json" />
<package pattern="Nerdbank.GitVersioning" />
<package pattern="Nerdbank.Streams" />
<package pattern="Nuget.Frameworks" />
<package pattern="Nuget.VisualStudio" />
<package pattern="StreamJsonRpc" />
<package pattern="System.*" />
</packageSource>
</packageSourceMapping>
</configuration>

0 comments on commit 7d43f68

Please sign in to comment.