Skip to content

Instantly share code, notes, and snippets.

@mswietlicki
Last active August 29, 2015 14:14
Show Gist options
  • Save mswietlicki/b48520ed49d8b6216bc2 to your computer and use it in GitHub Desktop.
Save mswietlicki/b48520ed49d8b6216bc2 to your computer and use it in GitHub Desktop.
Set-Alias ngen (Join-Path ([System.Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory()) ngen.exe)
[AppDomain]::CurrentDomain.GetAssemblies() |
? GlobalAssemblyCache -eq 0 |
? Location |
% { ngen install $_.Location }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment