Skip to content

Instantly share code, notes, and snippets.

@sohjsolwin
Last active March 15, 2021 18:10
Show Gist options
  • Save sohjsolwin/b44d03e32c9dca267402203c6b7c5f94 to your computer and use it in GitHub Desktop.
Save sohjsolwin/b44d03e32c9dca267402203c6b7c5f94 to your computer and use it in GitHub Desktop.
Powershell: Helpful Nuget Commands
get-project -All | foreach-object { If ($PSItem.ProjectName.Contains("\")) { $PSItem.ProjectName.SubString($PSItem.ProjectName.LastIndexOf("\")+1)} else { $PSItem.ProjectName } } | foreach-object { Add-BindingRedirect $PSItem}
get-project -All | foreach-object { If ($PSItem.ProjectName.Contains("\")) { $PSItem.ProjectName.SubString($PSItem.ProjectName.LastIndexOf("\")+1)} else { $PSItem.ProjectName } } | foreach-object { Update-Package -Reinstall -PackageName $PSItem}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment