<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.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>ILMerge to the rescue</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2007/01/15/ilmerge-to-the-rescue.aspx</link><description>Is your solution plagued by a large number of assemblies that need to be loaded? Well ILMerge will merge them together into one single assembly. A single assembly is so much easier to distribute after all Download it here . Or read more about it over</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>re: ILMerge to the rescue</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2007/01/15/ilmerge-to-the-rescue.aspx#1492630</link><pubDate>Sat, 02 Feb 2008 19:01:31 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1492630</guid><dc:creator>Maurice</dc:creator><description>&lt;p&gt;Hi &amp;nbsp;Riani,&lt;/p&gt;
&lt;p&gt;I would need more information to make even a wild guess to what the problem is.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1492630" width="1" height="1"&gt;</description></item><item><title>re: ILMerge to the rescue</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2007/01/15/ilmerge-to-the-rescue.aspx#1489531</link><pubDate>Fri, 01 Feb 2008 02:51:17 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1489531</guid><dc:creator>Riani</dc:creator><description>&lt;p&gt;I try to run NuGenUnify which use ILMerge but it keep give me this error result :&lt;/p&gt;
&lt;p&gt;Trying to read assembly from the file &amp;#39;D:\workspace\tes ilmerge\tesdll.dll&amp;#39;.&lt;/p&gt;
&lt;p&gt;Could not load assembly from the location &amp;#39;D:\workspace\tes ilmerge\tesdll.dll&amp;#39;. Skipping and processing rest of arguments.&lt;/p&gt;
&lt;p&gt;how to fix it?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1489531" width="1" height="1"&gt;</description></item><item><title>re: ILMerge to the rescue</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2007/01/15/ilmerge-to-the-rescue.aspx#1443629</link><pubDate>Mon, 07 Jan 2008 09:55:06 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1443629</guid><dc:creator>Yonatan Leonov</dc:creator><description>&lt;p&gt;ILMerge is helpfull in some scenarios, but with others it can be dangerous.&lt;/p&gt;
&lt;p&gt;For example - if you merge 2 assemblies with the same non public type on both - it will work but will change the name of the type. &lt;/p&gt;
&lt;p&gt;is it a problem? yes if you use reflection...&lt;/p&gt;
&lt;p&gt;and you can end up with multiple instance of a singleton too.&lt;/p&gt;
&lt;p&gt;don't forget the memory footprint of the merged assembly.&lt;/p&gt;
&lt;p&gt;so do use this tool, but only after you understand the implications.&lt;/p&gt;
&lt;p&gt;read more on &lt;a rel="nofollow" target="_new" href="http://readcommit.blogspot.com/2007/12/referencing-two-different-version-of.html"&gt;readcommit.blogspot.com/.../referencing-two-different-version-of.html&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1443629" width="1" height="1"&gt;</description></item><item><title>re: ILMerge to the rescue</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2007/01/15/ilmerge-to-the-rescue.aspx#597594</link><pubDate>Mon, 19 Feb 2007 13:08:52 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:597594</guid><dc:creator>Maurice</dc:creator><description>&lt;p&gt;Hi Hem,&lt;/p&gt;
&lt;p&gt;When I tried your PostBuildEvent it failed because it was unable to find the assemblies. In my case that was because of spaces in directory names. Not sure if you issue is the same but changing the command to: &lt;/p&gt;
&lt;p&gt;&amp;quot;c:\Program Files\Microsoft\ILMerge\ILMerge.exe&amp;quot; /wildcards /log:ILMerge.log /out:&amp;quot;$(TargetDir)Merged_Tool.exe&amp;quot; &amp;quot;$(TargetPath)&amp;quot; &amp;quot;$(TargetDir)Interop.*.dll&amp;quot;&lt;/p&gt;
&lt;p&gt;fixed the problem for me. Copying just the Merge_Tool.exe to another directory was all that was needed to run the app. &lt;/p&gt;
&lt;p&gt;Another possible reason could be the COM server you are using. As you didn't specify it I just used Visual FoxPro which has a pretty standard typelib.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=597594" width="1" height="1"&gt;</description></item><item><title>Problem after merging</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2007/01/15/ilmerge-to-the-rescue.aspx#597409</link><pubDate>Mon, 19 Feb 2007 12:07:28 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:597409</guid><dc:creator>Hem</dc:creator><description>&lt;p&gt;Hi I am using VS2005 and in the postbuiltevent of the project i use the following command : &lt;/p&gt;
&lt;p&gt;ILMerge.exe /wildcards /log:ILMerge.log /out:$(TargetDir)Merged_Tool.exe $(TargetPath) $(TargetDir)Interop.*.dll&lt;/p&gt;
&lt;p&gt;What I wanted to do is merge the program generated .exe and all the Interop*.dll into the executable directory into the Merged_Tool.exe and Copy this Merged_Tool.exe into some separtae directory (without copying the Interop*.dlls into that directory) and wants to successfully run it. When I run the application it gives &amp;quot;FileNotFoundException&amp;quot; because all the Interop dll's are not there in this &amp;quot;Merged&amp;quot; executable directory, when I copy all thse files over there it works fine.&lt;/p&gt;
&lt;p&gt;Can any one solve my problem as I dont want to distribute these Interop dlls to the user.&lt;/p&gt;
&lt;p&gt;I have seen the log and the log simply says that all the assemblies are merged successfully&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=597409" width="1" height="1"&gt;</description></item></channel></rss>