{"id":158,"date":"2009-06-26T12:36:24","date_gmt":"2009-06-26T17:36:24","guid":{"rendered":"http:\/\/hoolihan.net\/blog-tim\/?p=158"},"modified":"2009-06-29T12:06:07","modified_gmt":"2009-06-29T17:06:07","slug":"fun-with-the-gac","status":"publish","type":"post","link":"http:\/\/hoolihan.net\/blog-tim\/2009\/06\/26\/fun-with-the-gac\/","title":{"rendered":"Fun With the GAC"},"content":{"rendered":"<p>The .Net GAC (Global Assembly Cache).  It&#8217;s where all shared .Net components can live.  However, if you have to step through the code of one of these assemblies things can get exciting&#8230;<\/p>\n<p>Let&#8217;s say that I have a Business Object dll named business.dll and I have it in my GAC.  And a project in which I&#8217;m referencing that dll is having problems, inside that component.  I go to source control and check out the source.  Add that project into my solution in Visual Studio.  Unreference the GAC version, and reference the local project.  I should be able to step through, right?  <\/p>\n<p>Wrong.  The CLR resolves assemblies in the GAC before anywhere else.  <\/p>\n<p>Go into your GAC (C:\\Windows\\Assembly\\GAC_MSIL) and rename the dll with an extension like &#8220;.bak&#8221;.  Don&#8217;t forget to rename it after your done debugging \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The .Net GAC (Global Assembly Cache). It&#8217;s where all shared .Net components can live. However, if you have to step through the code of one of these assemblies things can get exciting&#8230; Let&#8217;s say that I have a Business Object dll named business.dll and I have it in my GAC. And a project in which [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[41,76,69],"class_list":["post-158","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-net","tag-gac","tag-linkedin"],"_links":{"self":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts\/158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/comments?post=158"}],"version-history":[{"count":0,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts\/158\/revisions"}],"wp:attachment":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/media?parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/categories?post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/tags?post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}