Well, who and all working in Sharepoint webparts or dlls, we have faced issue while development like for each small code behind changes we need to deploy the code (or) publish the code. It will kill our deployment time.
Instead of that we can find the dlls in GAC and can change the particular dll and do the IIS reset.
Finding and Replacement of DLL:
- Build the application and copy the dll inside bin (if you don’t find the bin then click show all files or open folder in file explorer)
- Navigate to GAC … in Run (ctrl+R) please enter the path
- a. In SharePoint 2010 path is “c:\windows\assembly”b. SharePoint 2013 : “c:\windows\microsoft.net\assembly“
- “C:\windows\microsoft.net\assembly\GAC_MSIL” –> in this path you can directly find the web as well as libraries
- Click on the web or class libraries folder,can see the folder starts like “v4.0_126.96.36.199_” (note: Based on the framework version)
- Open the folder and you can find the dll of the web application.
- Rename the existing dlls or delete it and paste your dll which you copied from bin
- open run (ctrl+r)
- type “cmd” and hit enter key
- type “iisreset” and hit enter
Now you can browse the application and you can change your changes without deploy the code.