Skip to content

Commit a0abc70

Browse files
author
Nate McMaster
committed
Point DOTNET_ROOT to correct path on Windows
1 parent 48a6e5a commit a0abc70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

files/KoreBuild/scripts/KoreBuild.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ function Set-KoreBuildSettings(
322322
$env:MSBUILDDEBUGPATH = Join-Paths $RepoPath ('artifacts', 'logs')
323323
}
324324

325-
$env:DOTNET_ROOT = $DotNetHome
325+
$arch = __get_dotnet_arch
326+
$env:DOTNET_ROOT = if ($IS_WINDOWS) { Join-Path $DotNetHome $arch } else { $DotNetHome }
326327

327328
$global:KoreBuildSettings = @{
328329
ToolsSource = $ToolsSource

0 commit comments

Comments
 (0)