Skip to content

Commit f0dab58

Browse files
committed
fine tune messages emitted during the hunt for dotnet
1 parent 34835b8 commit f0dab58

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: build.psm1

+3-2
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)