Skip to content

Instantly share code, notes, and snippets.

@solrevdev
Last active February 21, 2019 18:25
Show Gist options
  • Save solrevdev/d2f8127b89a283a62ca9543d95f5c4d7 to your computer and use it in GitHub Desktop.
Save solrevdev/d2f8127b89a283a62ca9543d95f5c4d7 to your computer and use it in GitHub Desktop.
updates all installed global dotnet tools
# for each tool in the list ignoring first 2 rows which are table headers run dotnet tool update
$tools = dotnet tool list -g | select-object -skip 2
foreach ($row in $tools)
{
$cols = $row.Split(" ")
$tool = $cols[0]
dotnet tool update -g $tool
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment