<?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>ganshani.com &#187; MSIL</title>
	<atom:link href="http://www.ganshani.com/tag/msil/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ganshani.com</link>
	<description>Puneet Ghanshani - .NET, Silverlight, Sharepoint Articles, Blogs, Poems, Photograph</description>
	<lastBuildDate>Sat, 24 Apr 2010 10:17:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Strong Naming an existing assembly</title>
		<link>http://www.ganshani.com/2008/09/06/strong-naming-an-existing-assembly/</link>
		<comments>http://www.ganshani.com/2008/09/06/strong-naming-an-existing-assembly/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 04:15:50 +0000</pubDate>
		<dc:creator>Punit Ganshani</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Microsoft .NET]]></category>
		<category><![CDATA[Winform]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[MSIL]]></category>
		<category><![CDATA[strong name]]></category>

		<guid isPermaLink="false">http://www.ganshani.com/?p=125</guid>
		<description><![CDATA[
			
				
			
		
Now this is one problem that we face when we use a 3rd party DLL, which is not-strongly named &#38; we still want to dump it to GAC.
So, lets see the 5-step solution:


Go to Visual Studio Command Prompt
Generate a Strong Name Key File
sn -k keyPair.snk 
Obtain MSIL for the assembly
ildasm Assembly.dll /out:Assembly.il 
 
Rename the original assembly
ren Assembly.dll [...]


<h2>Related posts:</h2><ul><li><a href='http://www.ganshani.com/2008/11/29/using-smart-client-with-enterprise-library-4/' rel='bookmark' title='Permanent Link: Using Smart Client with Enterprise Library 4'>Using Smart Client with Enterprise Library 4</a></li>
<li><a href='http://www.ganshani.com/2008/06/28/bluetooth-with-csharp/' rel='bookmark' title='Permanent Link: Bluetooth with C#'>Bluetooth with C#</a></li>
<li><a href='http://www.ganshani.com/2009/02/24/exception-message-box-in-c/' rel='bookmark' title='Permanent Link: Exception Message Box in C#'>Exception Message Box in C#</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ganshani.com%2F2008%2F09%2F06%2Fstrong-naming-an-existing-assembly%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ganshani.com%2F2008%2F09%2F06%2Fstrong-naming-an-existing-assembly%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p style="text-align: left;">Now this is one problem that we face when we use a 3rd party DLL, which is not-strongly named &amp; we still want to dump it to GAC.</p>
<p style="text-align: left;">So, lets see the 5-step solution:</p>
<p style="text-align: left;">
<ol>
<li>Go to Visual Studio Command Prompt</li>
<li><strong>Generate a Strong Name Key File</strong><br />
sn -k keyPair.snk </li>
<li><strong>Obtain MSIL for the assembly</strong><br />
ildasm Assembly.dll /out:Assembly.il <br />
 </li>
<li><strong>Rename the original assembly</strong><br />
ren Assembly.dll Assembly.dll.old <br />
 </li>
<li><strong>Create a new assembly from MSIL &amp; Key File</strong><br />
ilasm Assembly.il /dll /key= keyPair.snk </li>
</ol>
<div>The new Assembly is a strong-named assembly.</div>


<p><h2>Related posts:</h2><ul><li><a href='http://www.ganshani.com/2008/11/29/using-smart-client-with-enterprise-library-4/' rel='bookmark' title='Permanent Link: Using Smart Client with Enterprise Library 4'>Using Smart Client with Enterprise Library 4</a></li>
<li><a href='http://www.ganshani.com/2008/06/28/bluetooth-with-csharp/' rel='bookmark' title='Permanent Link: Bluetooth with C#'>Bluetooth with C#</a></li>
<li><a href='http://www.ganshani.com/2009/02/24/exception-message-box-in-c/' rel='bookmark' title='Permanent Link: Exception Message Box in C#'>Exception Message Box in C#</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.ganshani.com/2008/09/06/strong-naming-an-existing-assembly/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
