Skip to content

Instantly share code, notes, and snippets.

@radleta
Created June 13, 2012 21:22
Show Gist options
  • Save radleta/2926579 to your computer and use it in GitHub Desktop.
Save radleta/2926579 to your computer and use it in GitHub Desktop.
A couple of snips to use when you need to downgrade a project using the Package Manager Console.
$projects = Get-Project -All | Select @{ Name="ProjectName";Expression={$_.ProjectName}}, @{Name="Has";Expression={Get-Package Insight.Database -ProjectName $_.ProjectName}} | where { $_.Has -ne 'Insight.Database 1.1.5' }
$projects | select { Uninstall-Package Insight.Database -ProjectName $_.ProjectName -Force }
$projects | select { Install-Package Insight.Database -Version 1.1.4 -ProjectName $_.ProjectName }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment