Skip to content

Instantly share code, notes, and snippets.

@davidalpert
Created September 16, 2012 03:38
Show Gist options
  • Select an option

  • Save davidalpert/3730925 to your computer and use it in GitHub Desktop.

Select an option

Save davidalpert/3730925 to your computer and use it in GitHub Desktop.
Use powershell and the nuget.copy.extension to copy all packages from a config file to a local file share.
E:\Dev\YourSolutionFolder> foreach ($package in ([xml](Get-Content .\YourProject\packages.config))).packages.package) { nuget copy $package.id -version $package.version -dest c:\localshare\ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment