NuGet/Home

Multiple -ConfigFile Nuget.Config / misleading help text

Open

#6523 aperta il 5 feb 2018

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)HTML (292 fork)batch import
Category:Quality WeekPriority:2Product:NuGet.exeType:Bughelp wanted

Metriche repository

Star
 (1459 star)
Metriche merge PR
 (Merge medio 464g 23h) (1 PR mergiata in 30 g)

Descrizione

NuGet product used: NuGet.exe

NuGet version: 4.5.1.4879

OS version: win10 v1709 (16299.192)

nuget.exe help install shows:

-ConfigFile   The NuGet configuration file. If not specified, file %AppData%\NuGet\NuGet.config is used as configuration file.

But this help text is very misleading, as by default there are actually multiple Nuget.Config files that might be used. This help text does not mention them, nor that these other files are also skipped if the -ConfigFile option is specified.

Is it somehow possible to not skip them? Specifying -ConfigFile multiple times does not lead to an error, but the additional files seem to be silently ignored.

Is there a way to make nuget print the config files that are used? nuget.exe sources -Verbosity detailed does not show any information about that.

(This all gets very confusing when NuGet is run on a build server as a Windows Service, where %AppData%\NuGet\NuGet.config is actually C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming\NuGet\NuGet.config, but edits to that file are redirected by Windows and hence ignored by Nuget.)

Guida contributor