<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Using ILASM and ILDASM</title><link>http://blogs.msdn.com/thottams/archive/2007/02/01/using-ilasm-and-ildasm.aspx</link><description>I wanted to write another small sample to demonstrate how you can use ilasm to modify a compiled assembly. The sample is very simple, but demonstrates the concept well. Let us take App.cs which contains the following code: using System; public class sample</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Using ILASM and ILDASM</title><link>http://blogs.msdn.com/thottams/archive/2007/02/01/using-ilasm-and-ildasm.aspx#1577802</link><pubDate>Fri, 02 Feb 2007 03:22:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1577802</guid><dc:creator>Alois Kraus</dc:creator><description>&lt;p&gt;Hi Thottam,&lt;/p&gt;
&lt;p&gt;I have made a simple strong naming took with this technique which works quite well:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://geekswithblogs.net/akraus1/archive/2007/01/23/104288.aspx"&gt;http://geekswithblogs.net/akraus1/archive/2007/01/23/104288.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;One problem that remains is debuggability. If you do such a round trip the VS 2005 debugger is no longer able to set any breakpoints. The Ilasm /Debug option does not help much since I end up either in IL code or if I copy the original pdb at the recompiled exe location it is not loaded for some reason.&lt;/p&gt;
&lt;p&gt;Yours,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; Alois Kraus&lt;/p&gt;
</description></item><item><title>re: Using ILASM and ILDASM</title><link>http://blogs.msdn.com/thottams/archive/2007/02/01/using-ilasm-and-ildasm.aspx#1591063</link><pubDate>Sat, 03 Feb 2007 19:34:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1591063</guid><dc:creator>thottams@microsoft.com</dc:creator><description>&lt;p&gt;Thanks for the feedback. I agree. The down side to this is debuggability. I have seen lots of people use this approach to achieve minor tweaks to their assemblies, if their assembly was generated by a tool. &lt;/p&gt;
</description></item></channel></rss>