Created
June 13, 2012 21:22
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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