Drag and drop a DLL to the GAC (“assembly”) in windows server 2008 .net 4.0

前端 未结 7 1418
清酒与你
清酒与你 2020-12-01 02:55

I\'ve trying to deploy some code to a client machine, where I don\'t want to install MS windows SDK tools. This means don\'t have access to \"gacutil\". I also have not c

7条回答
  •  青春惊慌失措
    2020-12-01 03:37

    You can also just copy the file to GAC using a command prompt. I use the following batch script to copy the DLL and restart IIS.

    copy /b/v/y "PathToAssembly\MyAssembly.dll" "C:\Windows\assembly\" 
    iisreset /noforce
    pause
    

    Saves the need to use or install gacutil

提交回复
热议问题