Pull packages from multiple feeds via the command line. How to globally specify the feeds?

Jul 9, 2011 at 6:35 AM

Hi All

I'm trying to integrate NuGet into my build. Unfortunately I have to use the command line version of NuGet because I only have C# express (which isn't supported and according to issue http://nuget.codeplex.com/workitem/184 it won't be any time soon. The problem is how to specify the location of the multiple feeds (one from the build machine and the global nuget.org one) so that nuget.exe will pick that up. I've seen references to magical repository.config files (but no explanation of what they look like or where they should live) and I've also seen references to nuget.config but again no indication of what the syntax is for making this work. The documentation states that you can just go to visual studio and then change the nuget settings but you need a non express version of VS for that. So if somebody could point me to some information on how to get these feeds to work that would be nice.

Thanks

Patrick

Jul 9, 2011 at 10:53 PM

NuGet.Config goes in %APPDATA%\nuget and looks like this:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="NuGet official package source" value="https://go.microsoft.com/fwlink/?LinkID=206669" />
  </packageSources>
  <activePackageSource>
    <add key="All" value="(Aggregate source)" />
  </activePackageSource>
</configuration>

Jul 10, 2011 at 6:56 AM

Thanks. I'll try that out shortly :)