Using multiple sources when installing command line

Mar 27, 2011 at 4:50 AM
Edited Mar 27, 2011 at 6:11 AM

I'd like to be able to use more than one source when using install from config file with nuget.exe.

I believe that would be a good idea to add the source to the config file so when installing the package can be installed from the same source.

Something like this:

<?xml version="1.0" encoding="utf-8"?>

     <packages>  

          <package id="Castle.Core" version="2.5.2" />  

          <package id="MyOwnLib" version="1.0" source="http://mysource/dataservices/packages.svc" />

 

Or also could have a source declaration at the top (similar to a Gemfile) and then search in each source before installing.

Thoughts?

Mar 28, 2011 at 10:07 AM

re declaration at the top, something like:

<?xml version="1.0" encoding="utf-8"?>

     <packages>  

          <source url="{default feed url, added automatically}" />  

          <source url="http://mysource/dataservices/packages.svc" />

          <package id="Castle.Core" version="2.5.2" />  

          <package id="MyOwnLib" version="1.0" />

           ...

I could use this feature also.