1

Closed

Hierarchical nuget.config doesn't use ActivePackageSource as default pkg src

description

Scenario:
NuGet package restore using a solution-specific, local nuget.config file.

Details:
  • No nuget config present on build server.
  • People should be able to stick as much as possible to the default nuget.targets file.
  • Package sources are configured in $(SolutionDir).nuget\nuget.config file.
Expected behavior:
  1. When no <PackageSource> value has been provided in the nuget.targets file (default is ""), then nuget.exe should use the <activePackageSource> from the hierarchical nuget.config.
  2. When no <activePackageSource> has been set, then nuget.exe should fallback on the default nuget.org pkg src.
Actual behavior:
nuget.exe always falls back onto the default nuget.org pkg src, disregarding the <activePackageSource> element in the local nuget.config file.
Closed Nov 10, 2012 at 3:46 AM by ClayCompton
Regression testing with the latest 2.2 build reveals no issues.

comments

anurse wrote Nov 7, 2012 at 10:30 PM

This is also fixed by http://nuget.codeplex.com/SourceControl/changeset/08f21769c61d, since it that fix forces NuGet.exe to reload config once we realize we're doing a package restore.

QA, please verify and close.