473,548 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem merging assemblies with ILMerge

vikramadith
12 New Member
I'm having some issues merging dlls into my exe

Basically I have three VS projects, one producing an exe, and the other two producing dlls. Let us just call it MyApp.exe, Lib1.dll and Lib2.dll. All are written in C#.

MyApp references both dlls.

Now, I want the dlls to be merged into the exe, so I used ILMerge (with the Gilma UI) to do so. According to the ILMerge output, the merge works fine without any errors. However, when I try and run the merged exe, I get a LoaderException , and apparently, it is still searching for Lib2.dll!

The problem is only with Lib2. I confirmed this by merging MyApp.exe with Lib1.dll and running it in the same folder as Lib2.dll, and it works. But if I merge Lib2.dll as well, then it doesn't.

I've checked the project properties, and I can't see any differences that might make Lib1 work and Lib2 fail.

Can anyone think of *possible* reasons why this might have failed? Remember, ILMerge output shows that no errors occurred.
Oct 12 '07 #1
0 1241

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2639
by: thechaosengine | last post by:
Hi, I have a solution made out of about 5 projects. At the moment, each one is creating its own dll in its own subdirectory. I seem to remember that there is a way to merge multiple dlls into one big Daddy dll. Does anyone know how to do this and is there anything I should be aware of when using this dll from other projects?
3
995
by: Tim Marsden | last post by:
Hi, I am trying to use ILMerge to consolidate a .exe and serval .dll's into a single .exe. (VB.NET) I am using the following command. ILMerge.exe /wildcards /log:Log.txt /keyfile:"C:\MyKey.snk" /t:winexe /out:Merged.exe Primary.exe *.dll I get the follow result at the end of my log file:
1
2216
by: Oz Sozen | last post by:
I want to use ILMerge in my project, but it requires a framework version that I cannot find the download for (2.0.7.... something). The latest I can see is 2.0.5. Does anybody know where I can find this framework or a version of ILMerge that works with an earlier framework. Thanks.
4
1629
by: Wayne P. | last post by:
I'd like to embed some dependent assemblies in my exe as not to worry about distribution. I have come across a few examples in C# (http://weblogs.asp.net/jdennany/archive/2003/09/24/29035.aspx), but I have been unsuccessful in translating them into VB.Net as my C skills are rather poor. Could someone post either links to VB.Net examples...
0
1976
by: Dennis | last post by:
I am trying to use ILMerge to create a single executable. Below are the DOS command lines that I am using: cd c:\program files\ilmerge ilmerge /lib:c:\programming\vs-projects\recipes\bin /target:winexe /out:c:\RecipeSinglePgm.exe Recipes.exe Interop.ADODB.dll Interop.ADOX.dll Interop.JRO.dll MultiBoxControl.dll MultiGridControl.dll I...
7
2184
by: Khaled Hussein | last post by:
Hi Every body, I am currently working in aproject where I am stuck in merging an ActiveX control (*.ocx) file into a managed Class Library (*.dll). I want to hide the ActiveX Control in this managed Dll, so that even when things are deployed I don't wanna see two files, but only 1 file which is the dll, and it would contain within it, the...
1
2013
by: Sagaert Johan | last post by:
Hi Is there a tool to merge several assembly dll's into one ? Johan
5
2787
by: =?Utf-8?B?aWduaGVucnk=?= | last post by:
I have a managed C++ project and two C# projects. All are class library projects. The C++ project links with native C++ static libraries and references to one C# project. The projects structure goes something like this. Proj2_MCPP --(references)--Proj1_CSharp Proj3_CSharp --(references)--Proj2_MCPP and Proj1_CSharp My objective is to link...
1
3733
by: kulabhishek | last post by:
Hello, I have used ILMerge tool to merge the multiple dlls into one. The dlls were merged successfully and the out file was also dll. But when i am using this dll with other application, it is giving me error with Resources. The resources are there in same assembly, with build action None. Like : The resource file is Expression.xml in...
0
7438
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7707
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7951
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7803
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6036
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5362
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3495
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1926
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
751
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.