Skip to content

Commit 5279cea

Browse files
committed
Set DOTNET_HOST_PATH
1 parent b9d768a commit 5279cea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

eng/build.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,11 @@ try {
734734

735735
Push-Location $RepoRoot
736736

737+
# Workaround for MSBuild bug where DOTNET_HOST_PATH is sometimes unset before Csc task
738+
if (-not $env:DOTNET_HOST_PATH) {
739+
$env:DOTNET_HOST_PATH = Join-Path $RepoRoot '.dotnet'
740+
}
741+
737742
Subst-TempDir
738743

739744
if ($ci) {

0 commit comments

Comments
 (0)