Created
October 22, 2015 14:28
-
-
Save jrolstad/611b5a7c2b55a974692c to your computer and use it in GitHub Desktop.
Powershell script that reinstalls Nuget Packages in the Visual Studio Package Manager Console. Useful when a project's framework version is upgraded
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
$projectName = "<project name>" | |
Get-Package -projectName $projectName | ForEach-Object {UnInstall-Package -Id $_.Id -projectName $projectName -Force;Install-Package -Id $_.Id -Version $_.Version -IgnoreDependencies -projectName $projectName} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment