File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -510,20 +510,21 @@ function Get-DotnetExe
510
510
# check the usual places
511
511
if ( ! (test-path variable:IsWindows) -or $IsWindows ) {
512
512
$dotnetHuntPath = " $HOME \AppData\Local\Microsoft\dotnet\dotnet.exe"
513
- Write-Verbose - Verbose " checking $dotnetHuntPath "
513
+ Write-Verbose - Verbose " checking Windows $dotnetHuntPath "
514
514
if ( test-path $dotnetHuntPath ) {
515
515
$script :DotnetExe = $dotnetHuntPath
516
516
return $dotnetHuntPath
517
517
}
518
518
}
519
519
else {
520
520
$dotnetHuntPath = " $HOME /.dotnet/dotnet"
521
- Write-Verbose - Verbose " checking $dotnetHuntPath "
521
+ Write-Verbose - Verbose " checking non-Windows $dotnetHuntPath "
522
522
if ( test-path $dotnetHuntPath ) {
523
523
$script :DotnetExe = $dotnetHuntPath
524
524
return $dotnetHuntPath
525
525
}
526
526
}
527
+
527
528
Write-Warning " Could not find dotnet executable"
528
529
return [String ]::Empty
529
530
}
You can’t perform that action at this time.
0 commit comments