-SolutionDirectory switch on nuget restore does not work with relative paths #992

deepakaravindr opened this Issue Jul 22, 2015 · 1 comment


None yet

3 participants


-SolutionDirectory switch on nuget restore does not work with relative paths

Repro steps

  1. Create a console application 'A' and install a few packages on it
  2. Delete the packages folder
  3. Switch to the project directory for A
  4. Run 'nuget.exe restore packages.config -SolutionDirectory ..'


  1. Packages are restored properly


  1. Restore failed with 'The path is not of a legal form'
  2. Pa
@deepakaravindr deepakaravindr added this to the 3.2.0-commandline milestone Jul 22, 2015
@deepakaravindr deepakaravindr self-assigned this Jul 22, 2015
@deepakaravindr deepakaravindr added a commit to NuGetArchive/NuGet.PackageManagement that referenced this issue Jul 29, 2015
@deepakaravindr deepakaravindr Fixes NuGet/Home#1040 and

Force changing SolutionDirectory and PackagesDirectory to be full path
right before they are used. While reading settings, we need to pass the full
path and NuGetPackageManager needs a full path too
@deepakaravindr deepakaravindr referenced this issue in NuGetArchive/NuGet.PackageManagement Jul 29, 2015

Package restore fixes v #49

@RanjiniM RanjiniM added the 2 - Working label Sep 1, 2015
@RanjiniM RanjiniM assigned zhili1208 and unassigned deepakaravindr Sep 1, 2015
@zhili1208 zhili1208 added 3 - Done and removed 2 - Working labels Sep 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment