Steps to copy assembly from GAC to local folder on Windows 2012 server – required in migration
Hi All,
Greetings for the day 🙂 LIFE IS BEAUTIFUL 🙂
Today sharing very easy but new thing I learned – how to copy assembly from GAC to local folder 🙂
Background :
- We are migrating from SharePoint 2010 and SharePoint 2013
- In SharePoint 2010 environment we have custom category / action created in diagnostic collection
- To create custom category / action in SharePoint 2010 environment, we had used Microsoft Pattern and Practices library
- Assemblies used from Microsoft Pattern and Practices libraries are
- Microsoft.Practices.SharePoint.Common
- In our SharePoint 2013 environment these assemblies are not available
- SPG page on codeplex was dead 🙁
- So we need to install Microsoft Pattern and Practices library on SharePoint 2013 environment
- But there is no option found to migrate SPG 2010 code / libraries to SharePoint 2013.
- SharePoint Guidance / Microsoft Pattern and Practice libraries active releases are only for SharePoint 2010 and MOSS SharePoint 2007 – https://docs.microsoft.com/en-us/previous-versions/msp-n-p/ff650022(v=pandp.10)?redirectedfrom=MSDN
- Also there is no downloadable available for SharePoint 2013 environment and we dont have assemblies availabe so that we can add to GAC
- Here is the new requirement born 🙂
- Copy the respecitve assemblies from GAC of SharePoint 2010 environment and add them to SharePoint 2013 environment GAC
- Since this is again new to me though its very easy, need to do bit google and found steps. So sharing it. SHARING IS CARING 🙂
Following are the steps to copy the assemblies from GAC :
- Open a command prompt(as an administrator)
- run > cmd
- Navigate to assembly and gac folder
- cd Windows\assembly\GAC_MSIL
- Navigate further down to the desired assembly >
- dir <assembly name initials>
- cd <assembly name>
- Keep on doing this until you find the required .dll file
- Then copy it
- copy <assembly dll> <filesystem location>
Thanks for reading 🙂 If its worth at least reading once, kindly please like and share 🙂 SHARING IS CARING 🙂
Enjoy the beautiful life 🙂 Have a FUN 🙂 HAVE A SAFE LIFE 🙂 TAKE CARE 🙂
You must be logged in to post a comment.