1

For some reason, our dev deployment is done by copying an updated .dll file to the GAC (Global Assembly Cache) by dragging and dropping it to the C:\Windows\Assembly folder.

I tried to create a batch script that contains the following code:

XCOPY d:\source\sample.dll c:\Windows\Assembly

but this seems to not work.

I was told it is because dragging the .dll into the Assembly folder does not copy it, but installs it somehow.

Is there a way to do this using a batch?

We do this 20 times per day, so its really time consuming to do this manually every time.

Oreo
  • 529
  • 3
  • 16
TheProvost
  • 1,832
  • 2
  • 16
  • 41

1 Answers1

2

Try gacutil. Take a look here it seems like a duplicate. BTW: Assembly tag is for low-level assembler.

Community
  • 1
  • 1
M.L.
  • 728
  • 4
  • 12
  • But gacutil is a visual studio command prompt right? can we do this with using the default command prompt? – TheProvost May 14 '15 at 08:23
  • You can use it with non-VS command prompt. Use full path to gacutil.exe i.e. C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\gacutil.exe or setup environment PATH to that directory where gacutil.exe is located. – M.L. May 14 '15 at 09:02
  • Tnx this saved me tons of hours. Really appreciate it bro :) – TheProvost May 14 '15 at 09:31