File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -510,20 +510,21 @@ function Get-DotnetExe
510510 # check the usual places
511511 if ( ! (test-path variable:IsWindows) -or $IsWindows ) {
512512 $dotnetHuntPath = " $HOME \AppData\Local\Microsoft\dotnet\dotnet.exe"
513- Write-Verbose - Verbose " checking $dotnetHuntPath "
513+ Write-Verbose - Verbose " checking Windows $dotnetHuntPath "
514514 if ( test-path $dotnetHuntPath ) {
515515 $script :DotnetExe = $dotnetHuntPath
516516 return $dotnetHuntPath
517517 }
518518 }
519519 else {
520520 $dotnetHuntPath = " $HOME /.dotnet/dotnet"
521- Write-Verbose - Verbose " checking $dotnetHuntPath "
521+ Write-Verbose - Verbose " checking non-Windows $dotnetHuntPath "
522522 if ( test-path $dotnetHuntPath ) {
523523 $script :DotnetExe = $dotnetHuntPath
524524 return $dotnetHuntPath
525525 }
526526 }
527+
527528 Write-Warning " Could not find dotnet executable"
528529 return [String ]::Empty
529530}
You can’t perform that action at this time.
0 commit comments