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 :

  1. Open a command prompt(as an administrator)
    • run > cmd
  2. Navigate to assembly and gac folder
    • cd Windows\assembly\GAC_MSIL
  3. 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
  4. Then copy it
    • copy <assembly dll> <filesystem location>
Steps to copy assembly from GAC to local folder
Fig : Steps to copy assembly from GAC to local folder

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 🙂

Prasham Sabadra

LIFE IS VERY BEAUTIFUL :) ENJOY THE WHOLE JOURNEY :) Founder of Knowledge Junction and live-beautiful-life.com, Author, Learner, Passionate Techie, avid reader. Certified Professional Workshop Facilitator / Public Speaker. Scrum Foundation Professional certificated. Motivational, Behavioral , Technical speaker. Speaks in various events including SharePoint Saturdays, Boot camps, Collages / Schools, local chapter. Can reach me for Microsoft 365, Azure, DevOps, SharePoint, Teams, Power Platform, JavaScript.

You may also like...

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: