473,385 Members | 1,324 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Problem merging assemblies with ILMerge

vikramadith
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 1218

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

Similar topics

2
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...
3
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...
1
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...
4
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),...
0
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...
7
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...
1
by: Sagaert Johan | last post by:
Hi Is there a tool to merge several assembly dll's into one ? Johan
5
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...
1
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.