Skip to content

Commit

Permalink
fine tune messages emitted during the hunt for dotnet
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWTruher committed Feb 14, 2019
1 parent 34835b8 commit f0dab58
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -510,20 +510,21 @@ function Get-DotnetExe
# check the usual places
if ( ! (test-path variable:IsWindows) -or $IsWindows ) {
$dotnetHuntPath = "$HOME\AppData\Local\Microsoft\dotnet\dotnet.exe"
Write-Verbose -Verbose "checking $dotnetHuntPath"
Write-Verbose -Verbose "checking Windows $dotnetHuntPath"
if ( test-path $dotnetHuntPath ) {
$script:DotnetExe = $dotnetHuntPath
return $dotnetHuntPath
}
}
else {
$dotnetHuntPath = "$HOME/.dotnet/dotnet"
Write-Verbose -Verbose "checking $dotnetHuntPath"
Write-Verbose -Verbose "checking non-Windows $dotnetHuntPath"
if ( test-path $dotnetHuntPath ) {
$script:DotnetExe = $dotnetHuntPath
return $dotnetHuntPath
}
}

Write-Warning "Could not find dotnet executable"
return [String]::Empty
}
Expand Down

0 comments on commit f0dab58

Please sign in to comment.