-
Notifications
You must be signed in to change notification settings - Fork 79
Description
A new command has been added to the dnu
command: dnu feeds list
. The command lists the NuGet Package Feeds in effect for a particular directory.
If you have a hierarchy of NuGet.Config
files defining sources at different levels of the file system, this command allows you to view the feeds that will be used at a particular location in that hierarchy.
For example, if you have the following:
root\NuGet.Config
definesSource1
andSource2
root\sub\NuGet.Config
disablesSource1
and addsSource3
Running this command in root\sub
would yield results like the following:
Registered Sources
1. Source1 http://... [DISABLED]
2. Source2 http://...
3. Source3 http://...
4. https://www.nuget.org/... ...
(Source 4, nuget.org, is automatically added by default, see the NuGet Documentation for further discussion of NuGet.Config and package sources)
Running the same command in root
would yield different results:
Registered Sources
1. Source1 http://...
2. Source2 http://...
3. https://www.nuget.org/... ...
This allows a user to see what sources dnu restore
would use before actually running the restore.
In the future, other commands may be added under dnu feeds
, but nothing has been decided yet.
See aspnet/dnx#1113 (Issue) and aspnet/dnx#2121 (Pull Request)