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 Microsoft 365 Junction, Speaker, Author, Learner, Developer, Passionate Techie. Certified Professional Workshop Facilitator / Public Speaker. Believe in knowledge sharing. Around 20+ years of total IT experience and 17+ years of experience in SharePoint and Microsoft 365 services Please feel free me to contact for any SharePoint / Microsoft 365 queries. I am also very much interested in behavioral (life changing) sessions like motivational speeches, Success, Goal Setting, About Life, How to live Life etc. My book - Microsoft 365 Power Shell hand book for Administrators and Beginners and 100 Power Shell Interview Questions - https://www.amazon.in/Microsoft-Administrators-Beginners-Interview-Questions/dp/9394901639/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1679029081&sr=8-11

You may also like...

Leave a Reply

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