This project is read-only.


relative path in reporitorypath and clearing package source problems


I'm using nuget 2.5.40416.9020

here is the example to reproduce my problems it

in f:\Project1 I typed:

nuget install nlog

it was installed in F:\Project1\$\External\Packages not in F:\Project1\External\Packages as you said*
  • When invoked from F:\Project1 or F:\Project1\Source: 1, 2 and 3. The last config file that gets loaded overrides repositorypath therefore packages get expanded in F:\Project1\External\Packages instead of F:\tmp. It also clears <packageSources> therefore is no longer available as a source; instead only http://MyPrivateRepo/ES/nuget is available.
is it documnetation error? and repositorypath is relative to deepest nuget.config in witch I have overwritten repositorypath? was not cleared also.
nuget install nlog

should fail (now only warns me WARNING: An error occurred while loading packages from'http://myprivaterepo/ES/nuget': The remote name could not be resolved: 'myprivaterepo') because the only source available is "MyPrivateRepo - ES", and address http://MyPrivateRepo clearly does not exist.

when I changed "MyPrivateRepo - ES" address to unc folder witch holds nlog, nlog from was installed.
Closed Jul 29, 2013 at 9:40 PM by dotnetjunky
Please reactivate with a more concrete repro steps


deepakverma wrote Jul 24, 2013 at 12:51 AM

Can you please update to latest NuGet 2.6 and verify the project still repros. I am not able to clearly understand the repro steps. Can you please share the content of your nuget.config that has the repositorypath setting.