1

Closed

relative path in reporitorypath and clearing package source problems

description

I'm using nuget 2.5.40416.9020

here is the example to reproduce my problems it http://docs.nuget.org/docs/reference/nuget-config-file

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 nuget.org 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?

nuget.org 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 2.0.0.2000, nlog 2.0.1.2 from nuget.org was installed.
Closed Jul 29, 2013 at 8:40 PM by dotnetjunky
Please reactivate with a more concrete repro steps

comments

deepakverma wrote Jul 23, 2013 at 11:51 PM

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.