Skip to content

Instantly share code, notes, and snippets.

@JohnL4
Last active December 13, 2019 16:02
Show Gist options
  • Save JohnL4/135d4dc0dd3d0dd325687deadda16693 to your computer and use it in GitHub Desktop.
Save JohnL4/135d4dc0dd3d0dd325687deadda16693 to your computer and use it in GitHub Desktop.
cmd.exe line to loop over multiple files, installing them to the GAC (since my cmd-fu is weak)
rem (Run Visual Studio Developer Command Prompt as admin)
for %f in (Infragist*.dll) do gacutil -i %f
rem Verify...
gacutil -l | find /i "infragist" | find /i "17.1"
@JohnL4
Copy link
Author

JohnL4 commented Dec 13, 2017

If you then want to verify, using PowerShell (PSCX), that the DLLs got registered, note:

  1. cmd line is cd gac: ; ls | ? {$_.Name -match 'Infragist.*17\.'}
  2. Once the PSCX GAC AssemblyCache has been loaded, there's no way to refresh it. Instead, you have to start a new PS session (i.e., new PS window).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment