Commit 944ff4c9 authored by Ken Sykora's avatar Ken Sykora
Browse files

Now running ngen before packaging to avoid 100% cpu utilization on fresh...

Now running ngen before packaging to avoid 100% cpu utilization on fresh vagrant init's joefitzgerald/packer-windows#65
parent 457454dd
::http://support.microsoft.com/kb/2570538
::http://robrelyea.wordpress.com/2007/07/13/may-be-helpful-ngen-exe-executequeueditems/
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto 64BIT
%windir%\microsoft.net\framework\v4.0.30319\ngen.exe update /force /queue
%windir%\microsoft.net\framework\v4.0.30319\ngen.exe executequeueditems
exit /b
:64BIT
%windir%\microsoft.net\framework\v4.0.30319\ngen.exe update /force /queue
%windir%\microsoft.net\framework64\v4.0.30319\ngen.exe update /force /queue
%windir%\microsoft.net\framework\v4.0.30319\ngen.exe executequeueditems
%windir%\microsoft.net\framework64\v4.0.30319\ngen.exe executequeueditems
\ No newline at end of file
...@@ -75,6 +75,7 @@ ...@@ -75,6 +75,7 @@
"./scripts/vm-guest-tools.bat", "./scripts/vm-guest-tools.bat",
"./scripts/chef.bat", "./scripts/chef.bat",
"./scripts/vagrant-ssh.bat", "./scripts/vagrant-ssh.bat",
"./scripts/compile-dotnet-assemblies.bat",
"./scripts/compact.bat" "./scripts/compact.bat"
] ]
}, },
......
...@@ -75,6 +75,7 @@ ...@@ -75,6 +75,7 @@
"./scripts/vm-guest-tools.bat", "./scripts/vm-guest-tools.bat",
"./scripts/chef.bat", "./scripts/chef.bat",
"./scripts/vagrant-ssh.bat", "./scripts/vagrant-ssh.bat",
"./scripts/compile-dotnet-assemblies.bat",
"./scripts/compact.bat" "./scripts/compact.bat"
] ]
}, },
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment