Last active
February 21, 2019 18:25
-
-
Save solrevdev/d2f8127b89a283a62ca9543d95f5c4d7 to your computer and use it in GitHub Desktop.
updates all installed global dotnet tools
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
# 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