Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

Created Issue: when using the "install switch of nuget.exe it does not take into account heirarchy of nuget.config files [3024]

$
0
0
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.

Viewing all articles
Browse latest Browse all 7612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>