remove cmdlet

This commit is contained in:
La'Kaleigh Harris 2021-11-16 01:12:36 +00:00 committed by GitHub
parent e077aa83c8
commit 395fcadf33

View File

@ -20,7 +20,7 @@ if($args.count -eq 1)
if ($args[1]) if ($args[1])
{ {
# SDKs are listed on multiple lines with the path afterwards in square brackets # SDKs are listed on multiple lines with the path afterwards in square brackets
$versions = & $dotnet --list-sdks select -Unique | ForEach-Object { $_.SubString(0, $_.IndexOf('[')).Trim() } $versions = & $dotnet --list-sdks | ForEach-Object { $_.SubString(0, $_.IndexOf('[')).Trim() }
Write-Host "Installed versions: $versions" Write-Host "Installed versions: $versions"
$InstalledVersionCount = 0 $InstalledVersionCount = 0
foreach($arg in $args){ foreach($arg in $args){