All things Xamarin, SharePoint, and .NET related
SharePoint 2010 batch files to install DLLs into the GAC

SharePoint 2010 batch files to install DLLs into the GAC

Instead of manually coping over DLLs into the GAC you can use following bat files:

1.CopyDLLsToHere.bat

copy ..\..\bin\Debug\*.dll .

2.Install_DLLs_Application_into_GAC

@echo off
call GAC_DLLs DLLName

iisreset

GAC_DLLs.bat

ECHO OFF
ECHO Adding %1 to GAC
Set CurrentFolder=%~dp0%
call  "%VS100COMNTOOLS%..\..\VC\vcvarsall.bat" x86
cd %currentFolder%

GACUTIL -if %1.dll

Steps to use:

  • Compile project to product DLL
  •  1.CopyDLLsToHere.bat
  •  2.Install_DLLs_Application_into_GAC

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny