Skip to content

Commit 968abea

Browse files
committed
ReadyToRun output extremely noisy on CI builds. Fixes #2716
1 parent 41ea791 commit 968abea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ function CrossGen([string] $runtime, [bool] $isSelfContained, [string] $publishT
5757
}
5858
}
5959

60-
$prm = "/JITPath", "$publishTarget\download\clrjit\clrjit.dll", "/Platform_Assemblies_Paths", "$selfContained", "/nologo","/in", $_.FullName
60+
$prm = "/JITPath", "$publishTarget\download\clrjit\clrjit.dll", "/Platform_Assemblies_Paths", "$selfContained", "/nologo", "/in", $_.FullName
6161
# output for Microsoft.Azure.WebJobs.Script.WebHost.dll is Microsoft.Azure.WebJobs.Script.WebHost.exe.dll by default
6262
if ($_.FullName -like "*Microsoft.Azure.WebJobs.Script.WebHost.dll") {
6363
$prm += "/out"
6464
$prm += Join-Path $privateSiteExtensionPath "Microsoft.Azure.WebJobs.Script.WebHost.ni.dll"
6565
}
6666

67-
& $crossGen $prm
67+
& $crossGen $prm >> $buildOutput\crossgenout.$runtime.txt
6868

6969
$niDll = Join-Path $privateSiteExtensionPath $([io.path]::GetFileNameWithoutExtension($_.FullName) + ".ni.dll")
7070
if ([System.IO.File]::Exists($niDll)) {
@@ -91,7 +91,8 @@ function CrossGen([string] $runtime, [bool] $isSelfContained, [string] $publishT
9191
}
9292

9393
#read-host "Press ENTER to continue..."
94-
Remove-Item -Recurse -Force $selfContained -ErrorAction SilentlyContinue
94+
Remove-Item -Recurse -Force $selfContained -ErrorAction SilentlyContinue
95+
Remove-Item -Recurse -Force $publishTarget\download -ErrorAction SilentlyContinue
9596
}
9697

9798
function DownloadNupkg([string] $nupkgPath, [string[]]$from, [string[]]$to) {

0 commit comments

Comments
 (0)