Created
July 6, 2015 06:30
-
-
Save pisceanfoot/94aa495f037c88136ff0 to your computer and use it in GitHub Desktop.
Uninstall nuget reference in vs
This file contains hidden or 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
foreach ($project in Get-Project -All) { | |
$packages = Get-Package -ProjectName $project.ProjectName | |
foreach ($package in $packages) { | |
Uninstall-Package $package.Id -Force -ProjectName $project.ProjectName | |
} | |
foreach ($package in $packages) { | |
Install-Package $package.Id -ProjectName $project.ProjectName -Version $package.Version | |
} | |
} | |
$projectName = 'LanguageTest.UI' | |
$packages = Get-Package -ProjectName $projectName | |
foreach ($package in $packages) { | |
Uninstall-Package $package.Id -Force -ProjectName $projectName | |
} | |
foreach ($package in $packages) { | |
Install-Package $package.Id -ProjectName $projectName -Version $package.Version | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment