Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

Commit 2754edb

Browse files
author
Peter Hsu
committed
Crossgen output will not start a new process and pop out a new window
1 parent 9c19540 commit 2754edb

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/dnvm.ps1

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,13 +1054,18 @@ function dnvm-install {
10541054
}
10551055
elseif ($Runtime -eq "coreclr") {
10561056
if ($NoNative) {
1057-
_WriteOut "Skipping native image compilation."
1057+
_WriteOut "Skipping native image compilation."
10581058
}
10591059
else {
1060-
_WriteOut "Compiling native images for $runtimeFullName to improve startup performance..."
1061-
Write-Progress -Activity "Installing runtime" "Generating runtime native images" -Id 1
1062-
Start-Process $CrossGenCommand -Wait -WindowStyle Hidden
1063-
_WriteOut "Finished native image compilation."
1060+
_WriteOut "Compiling native images for $runtimeFullName to improve startup performance..."
1061+
Write-Progress -Activity "Installing runtime" "Generating runtime native images" -Id 1
1062+
if ($DebugPreference -eq 'SilentlyContinue') {
1063+
Start-Process $CrossGenCommand -Wait -WindowStyle Hidden
1064+
}
1065+
else {
1066+
Start-Process $CrossGenCommand -Wait -NoNewWindow
1067+
}
1068+
_WriteOut "Finished native image compilation."
10641069
}
10651070
}
10661071
else {

0 commit comments

Comments
 (0)