File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ function ConvertTo-PortableVersion {
372
372
# type in script, we need a way to find the highest version of dotnet, it's not a great solution
373
373
# but it will work in most cases.
374
374
Add-Member - inputobject $customObject - Type ScriptMethod - Name ToString - Force - Value {
375
- $str = " {0:0000}.{1:0000}.{2:0000}.{3:0000} " -f $this.Major , $this.Minor , $this.Patch
375
+ $str = " {0:0000}.{1:0000}.{2:0000}" -f $this.Major , $this.Minor , $this.Patch
376
376
if ( $this.PrereleaseLabel ) {
377
377
$str += " -{0}" -f $this.PrereleaseLabel
378
378
}
@@ -509,7 +509,7 @@ function Get-DotnetExe
509
509
# version in global.json will produce an error, so we can only take the dotnet which executes
510
510
$latestDotnet = $discoveredDotNet |
511
511
Where-Object { try { & $_ -- version 2> $null } catch { } } |
512
- Sort-Object { $pv = ConvertTo-PortableVersion (& $_ -- version 2> $null ); " $pv " } |
512
+ Sort-Object { $pv = ConvertTo-PortableVersion (& $_ -- version 2> $null ); " $pv " } |
513
513
Select-Object - Last 1
514
514
if ( $latestDotnet ) {
515
515
Write-Verbose - Verbose " Found dotnet here: $latestDotnet "
You can’t perform that action at this time.
0 commit comments