NuGet Packet Priority

If your NuGet.config file has several data packets:

<packageSources>
  <clear />
  <add key="dev" value="http://server2/branches/feature1/nuget" />
  <add key="release" value="http://server1/nuget" />
</packageSources>

Is the order in XML used when running nuget install, etc.? If I have packageA in version 1.0.0-SNAPSHOT in both versions, will there be a dev channel version on the Feature1 branch?

+4
source share
1 answer

The order of your feeds in nuget.config determines the order that they appear in the drop-down menus from various views in NuGet from Visual Studio. In all cases, you have a choice from which you install. See screenshots below.

Visual Studio , , , , . Visual Studio , , , .

NuGet, , <CompanyName>., .

enter image description here

enter image description here

+2

All Articles