This project is read-only.


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


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

  • 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 pkg src.
Actual behavior:
nuget.exe always falls back onto the default 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.


anurse wrote Nov 7, 2012 at 10:30 PM

This is also fixed by, since it that fix forces NuGet.exe to reload config once we realize we're doing a package restore.

QA, please verify and close.