Skip to content

Instantly share code, notes, and snippets.

@kberridge
Created December 14, 2012 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kberridge/4286245 to your computer and use it in GitHub Desktop.
Save kberridge/4286245 to your computer and use it in GitHub Desktop.
This powershell script performs the same function as VS's nuget package restore, but it does so without modifying the project files. So shared projects can still be shared between different solutions with different file layouts (or even some doing package restores and some not). The downside is it doesn't integrate with msbuild, so you have to r…
$packageConfigs = dir -r -include packages.config -exclude **\.hg\** | %{ $_.FullName }
$packageConfigs | %{ nuget.exe install $_ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment