Skip to content

Commit e93af95

Browse files
Add GitHub Actions Ubuntu's dotnet path (#2080)
Since they're not setting up PATH correctly now.
1 parent 45a82a1 commit e93af95

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.psm1

+7
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,13 @@ function Get-DotnetExe
563563
$script:DotnetExe = $dotnetHuntPath
564564
return $dotnetHuntPath
565565
}
566+
567+
$dotnetHuntPath = "/usr/share/dotnet/dotnet"
568+
Write-Verbose -Verbose "checking non-Windows $dotnetHuntPath"
569+
if ( test-path $dotnetHuntPath ) {
570+
$script:DotnetExe = $dotnetHuntPath
571+
return $dotnetHuntPath
572+
}
566573
}
567574

568575
Write-Warning "Could not find dotnet executable"

0 commit comments

Comments
 (0)