<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Stephen Lacy &#187; GAC</title>
	<atom:link href="http://www.lacy.ie/tag/gac/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lacy.ie</link>
	<description>Impressions as an ASP.Net Developer</description>
	<lastBuildDate>Mon, 05 Jul 2010 09:26:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Strong Name an existing dll or assembly</title>
		<link>http://www.lacy.ie/strong-name-an-existing-dll-assembly</link>
		<comments>http://www.lacy.ie/strong-name-an-existing-dll-assembly#comments</comments>
		<pubDate>Tue, 08 Sep 2009 16:05:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[assemblies]]></category>
		<category><![CDATA[dll]]></category>
		<category><![CDATA[GAC]]></category>
		<category><![CDATA[Strong Naming]]></category>

		<guid isPermaLink="false">http://lacy.ie/?p=202</guid>
		<description><![CDATA[Taken from http://sadeveloper.net/forums/p/1195/5115.aspx Saved me a lot of hassle Edit: If you have the debug and the release folder this may not work on the debug folder dll. It didn&#8217;t work for me. We&#8217;ve got a 3rd party DLL that we use (not strong named) and I wanted to add it to the GAC. Alas! Only strong [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Taken from <a href="http://sadeveloper.net/forums/p/1195/5115.aspx">http://sadeveloper.net/forums/p/1195/5115.aspx<br />
</a>Saved me a lot of hassle</p>
<p>Edit: If you have the debug and the release folder this may not work on the debug folder dll. It didn&#8217;t work for me.</p>
<blockquote><p>We&#8217;ve got a 3rd party DLL that we use (not strong named) and I wanted to add it to the GAC. Alas! Only strong named assemblies are allowed in the GAC.</p>
<p>I&#8217;ve been trying figure this out for almost a week&#8230; couldn&#8217;t find much help on Google , so I thought I&#8217;d share.</p>
<p>Well, here is my solution (it works&#8230; not sure if it&#8217;s the best way though)</p>
<p>From a VS.NET command prompt, enter the following:</p>
<p><strong>1. </strong><strong>Generate a KeyFile</strong></p>
<p>sn -k keyPair.snk</p>
<p><strong> </strong></p>
<p><strong>2. </strong><strong>Obtain the MSIL for the provided assembly</strong></p>
<p>ildasm providedAssembly.dll /out:providedAssembly.il</p>
<p><strong> </strong></p>
<p><strong>3. </strong><strong>Rename/move the original assembly</strong><strong> </strong></p>
<p>ren providedAssembly.dll providedAssembly.dll.orig</p>
<p><strong> </strong></p>
<p><strong>4. </strong><strong>Create a new assembly from the MSIL output and your assembly </strong><strong>KeyFile</strong></p>
<p>ilasm providedAssembly.il /dll /key= keyPair.snk</p>
<p>Viola!</p>
<p>You now have a strong named assembly.</p></blockquote>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.lacy.ie%2Fstrong-name-an-existing-dll-assembly&amp;linkname=Strong%20Name%20an%20existing%20dll%20or%20assembly"><img src="http://www.lacy.ie/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lacy.ie/strong-name-an-existing-dll-assembly/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->