[Windows] .NET Framework Performance Issue (#1316)

* ngen KB2570538

* suppress ngen log output
This commit is contained in:
Aleksandr Chebotov
2020-07-30 09:56:11 +03:00
committed by GitHub
parent 4de7ae4bce
commit 9364062300
2 changed files with 12 additions and 0 deletions

View File

@@ -771,6 +771,12 @@
"{{ template_dir }}/scripts/Installers/Disable-JITDebugger.ps1"
]
},
{
"type": "powershell",
"scripts":[
"{{ template_dir }}/scripts/Installers/Run-NGen.ps1"
]
},
{
"type": "powershell",
"inline": [

View File

@@ -0,0 +1,6 @@
Write-Host "NGen: Microsoft.PowerShell.Utility.Activities"
$null = & $env:SystemRoot\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install "Microsoft.PowerShell.Utility.Activities, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Write-Host "NGen: Framework64"
$null = & $env:SystemRoot\Microsoft.NET\Framework64\v4.0.30319\ngen.exe update
Write-Host "NGen: Framework"
$null = & $env:SystemRoot\Microsoft.NET\Framework\v4.0.30319\ngen.exe update