I have a build server that has NuGet.exe and a NuGet.config in the following directory:
C:\tools\NuGet\
I have altered the NuGet.config in that directory to contain a <packageSources> element listing some package sources and I have removed all sources from the default AppData\Roaming\NuGet\nuget.config for this user.
When I run "NuGet.Exe sources" it correctly displays the registered sources that are only located in the nuget.config along side the NuGet.Exe
When I run a "Nuget.exe install ...." It fails because it does not use the config located with the exe to determine the package sources. If I were to place the <packageSources> back into the default %appdata% nuget.config it works but, because of our source promotion branching model I cannot do that.
If I were to specify a source e.g. "Nuget.exe install -source "c:\Nugetpackages" ...." it does work.
C:\tools\NuGet\
I have altered the NuGet.config in that directory to contain a <packageSources> element listing some package sources and I have removed all sources from the default AppData\Roaming\NuGet\nuget.config for this user.
When I run "NuGet.Exe sources" it correctly displays the registered sources that are only located in the nuget.config along side the NuGet.Exe
When I run a "Nuget.exe install ...." It fails because it does not use the config located with the exe to determine the package sources. If I were to place the <packageSources> back into the default %appdata% nuget.config it works but, because of our source promotion branching model I cannot do that.
If I were to specify a source e.g. "Nuget.exe install -source "c:\Nugetpackages" ...." it does work.