Skip to content

Instantly share code, notes, and snippets.

@johannesegger
Last active March 28, 2017 12:31
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 johannesegger/dfc62c3d304e7659675796c90d8467b4 to your computer and use it in GitHub Desktop.
Save johannesegger/dfc62c3d304e7659675796c90d8467b4 to your computer and use it in GitHub Desktop.
# Reinstall all packages
Get-Package | Select -Unique Id | % { Update-Package -Reinstall $_.Id }
# Reinstall packages for a specific project
Get-Package | Where { $_.ProjectName -eq "ProjectA" } | % { Update-Package -Reinstall $_.Id -Project $_.ProjectName }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment