Skip to content

Instantly share code, notes, and snippets.

@b9AcE
Last active February 15, 2023 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b9AcE/7666ac2eb80cc1326cf92e1a3d3cbe7a to your computer and use it in GitHub Desktop.
Save b9AcE/7666ac2eb80cc1326cf92e1a3d3cbe7a to your computer and use it in GitHub Desktop.
Updating .NET runtimes to re-optimize the local .NET programs
@ECHO Run as admin after updating .NET runtimes to re-optimize the local .NET programs.
@ECHO Runs once for 32-bit and then once for 64-bit.
:: Version 2
:: Version 2 changes: Cosmetic.
@ECHO 32-bit:
"%windir%\Microsoft.NET\Framework\v4.0.30319\ngen.exe" update
"%windir%\Microsoft.NET\Framework\v4.0.30319\ngen.exe" executequeueditems
@ECHO 64-bit:
"%windir%\Microsoft.NET\Framework64\v4.0.30319\ngen.exe" update
"%windir%\Microsoft.NET\Framework64\v4.0.30319\ngen.exe" executequeueditems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment