Tuesday, May 10, 2016

Install a bunch of assemblies to GAC

Simple command to install a bunch assemblies to GAC....Make sure to have gacutil in the correct location.

get-childitem $basedirectory "*$filter.dll" | foreach-object -process{ WRITE-HOST -FOREGROUND GREEN "Processing $_"; gacutil.exe /i $_.FullName /f}

Thanks to the original author: http://stackoverflow.com/a/679116