Skip to content

Commit 7b112b4

Browse files
committed
Build components with dotnet instead of msbuild when running on linux.
1 parent 40d2a21 commit 7b112b4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Build-Toolkit-Components.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,13 @@ function Invoke-MSBuildWithBinlog {
170170
$msbuildArgs += "/v:detailed"
171171
}
172172

173-
msbuild $msbuildArgs $TargetHeadPath
173+
# If platform is linux, use dotnet instead of msbuild
174+
if ($($PSVersionTable.Platform) -eq "Unix") {
175+
dotnet build $msbuildArgs $TargetHeadPath
176+
}
177+
else {
178+
msbuild $msbuildArgs $TargetHeadPath
179+
}
174180
}
175181

176182
# Components are built individually

0 commit comments

Comments
 (0)