{"id":96,"date":"2012-09-11T16:35:26","date_gmt":"2012-09-11T21:35:26","guid":{"rendered":"http:\/\/www.johndhutton.com\/?p=96"},"modified":"2015-07-06T12:23:05","modified_gmt":"2015-07-06T17:23:05","slug":"sharepoint-2010-batch-files-to-install-dlls-into-the-gac","status":"publish","type":"post","link":"https:\/\/www.johndhutton.com\/?p=96","title":{"rendered":"SharePoint 2010 batch files to install DLLs into the GAC"},"content":{"rendered":"<p>Instead of manually coping over DLLs into the GAC you can use following bat files:<\/p>\n<p><strong>1.CopyDLLsToHere.bat<\/strong><\/p>\n<pre class=\"prettyprint lang-cpp\">copy ..\\..\\bin\\Debug\\*.dll .<\/pre>\n<p><strong>2.Install_DLLs_Application_into_GAC<\/strong><\/p>\n<pre class=\"prettyprint lang-cpp\">@echo off\r\ncall GAC_DLLs DLLName\r\n\r\niisreset<\/pre>\n<p><strong>GAC_DLLs.bat<\/strong><\/p>\n<pre class=\"prettyprint lang-cpp\">ECHO OFF\r\nECHO Adding %1 to GAC\r\nSet CurrentFolder=%~dp0%\r\ncall  &#34;%VS100COMNTOOLS%..\\..\\VC\\vcvarsall.bat&#34; x86\r\ncd %currentFolder%\r\n\r\nGACUTIL -if %1.dll<\/pre>\n<p><strong>Steps to use:<\/strong><\/p>\n<ul>\n<li>Compile project to product DLL<\/li>\n<li>\u00a01.CopyDLLsToHere.bat<\/li>\n<li>\u00a02.Install_DLLs_Application_into_GAC<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>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 &#34;%VS100COMNTOOLS%..\\..\\VC\\vcvarsall.bat&#34; x86 cd %currentFolder% GACUTIL -if %1.dll Steps to use: Compile project to &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4],"tags":[],"class_list":["post-96","post","type-post","status-publish","format-standard","hentry","category-sharepoint","category-sharepoint-2010"],"_links":{"self":[{"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=\/wp\/v2\/posts\/96","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=96"}],"version-history":[{"count":6,"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=\/wp\/v2\/posts\/96\/revisions"}],"predecessor-version":[{"id":103,"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=\/wp\/v2\/posts\/96\/revisions\/103"}],"wp:attachment":[{"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}