Deployment Tip

Jul 26, 2016 at 9:54 AM
Edited Jul 26, 2016 at 9:54 AM
If you selected all files that existed on a source machine but not on the target machine, once you've exported your files to a directory (say: c:\myExportedGacFiles\ on your target machine) you can use the below to deploy them.

Run PowerShell
push-location "c:\myExportedGacFiles"
get-childitem -Recurse -Include *.dll | %{"gacutil.exe /if ""$($_.FullName)"""} > GacCmds.txt

Then copy and paste the commands from c:\myExportedGacGiles\GacCmds.txt into the run the visual studio command prompt.