mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[Windows] .NET Framework Performance Issue (#1316)
* ngen KB2570538 * suppress ngen log output
This commit is contained in:
committed by
GitHub
parent
4de7ae4bce
commit
9364062300
@@ -771,6 +771,12 @@
|
|||||||
"{{ template_dir }}/scripts/Installers/Disable-JITDebugger.ps1"
|
"{{ template_dir }}/scripts/Installers/Disable-JITDebugger.ps1"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "powershell",
|
||||||
|
"scripts":[
|
||||||
|
"{{ template_dir }}/scripts/Installers/Run-NGen.ps1"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "powershell",
|
"type": "powershell",
|
||||||
"inline": [
|
"inline": [
|
||||||
|
|||||||
6
images/win/scripts/Installers/Run-NGen.ps1
Normal file
6
images/win/scripts/Installers/Run-NGen.ps1
Normal 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
|
||||||
Reference in New Issue
Block a user