473,396 Members | 1,997 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,396 software developers and data experts.

using ILMerge

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:
*********************
There were no errors reported in the target assembly's metadata.
ILMerge: Writing target assembly 'Merged.exe'.
ILMerge error: The target assembly was not able to be strongly named (did
you forget to use the /delaysign option?).
ILMerge: Done.
*********************

If a run the merged.exe I get a "Strong name validation failed" error.

If I add the /delaysign option I get the follow in the log file:
*********************
There were no errors reported in the target assembly's metadata.
ILMerge: Writing target assembly 'Merged.exe'.
ILMerge: Delay signed assembly 'Merged.exe'.
ILMerge: Done.
*********************

But still get the strong name error when I run the merged.exe.

If I use sn.exe to resign the .exe I get a "Bad Version of Provider" error

Can any body please help, or point me to some documentation.

--
Tim Marsden
Nov 22 '05 #1
6 4478
Hi Tim,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you're getting some error in log when
trying to merge all the assemblies in using ILMerge. If there is any
misunderstanding, please feel free to let me know.

Could you let me know if the Primary.exe and all the .dlls are strong
named? If yes, are they signed with the same key file?

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #2
Hi Tim,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you're getting some error in log when
trying to merge all the assemblies in using ILMerge. If there is any
misunderstanding, please feel free to let me know.

Could you let me know if the Primary.exe and all the .dlls are strong
named? If yes, are they signed with the same key file?

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #3
Hi Kevin,
Thanks for the reply, but I think I have found the problem. It looks like
the key pair file I was using was incorrect. I used the correct one and it
seems to work.
Regards
Tim
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:wH**************@TK2MSFTNGXA01.phx.gbl...
Hi Tim,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you're getting some error in log when
trying to merge all the assemblies in using ILMerge. If there is any
misunderstanding, please feel free to let me know.

Could you let me know if the Primary.exe and all the .dlls are strong
named? If yes, are they signed with the same key file?

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #4
Hi Kevin,
Thanks for the reply, but I think I have found the problem. It looks like
the key pair file I was using was incorrect. I used the correct one and it
seems to work.
Regards
Tim
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:wH**************@TK2MSFTNGXA01.phx.gbl...
Hi Tim,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you're getting some error in log when
trying to merge all the assemblies in using ILMerge. If there is any
misunderstanding, please feel free to let me know.

Could you let me know if the Primary.exe and all the .dlls are strong
named? If yes, are they signed with the same key file?

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #5
Hi Tim,

It was nice to hear that you have had the problem resolved. Thanks for
sharing your experience with all the people here. If you have any
questions, please feel free to post them in the community.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #6
Hi Tim,

It was nice to hear that you have had the problem resolved. Thanks for
sharing your experience with all the people here. If you have any
questions, please feel free to post them in the community.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: rawCoder | last post by:
Hi All, I have a *.cer file, a public key of some one and I want to encrypt some thing using this public key. Can someone point me to a sample code for Encrypting some file using...
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...
0
by: BL | last post by:
Is there any way to merge assembly ('MyLib.dll') with declared LicenseProviderAttribute into winexe application? By now I'm getting "ILMerge.Merge: The assembly 'MyLib.dll' was not merged in...
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...
6
by: Antonio Palermo | last post by:
I don't know how to use "ILMerge", Can you help me? TIA Antonio Palermo Excuse me for my bad English, I'm italian
3
by: JT | last post by:
Hi, I am having trouble finding information about GUIDs and strong-names and don't really know what I need. If that's too ambiguous, please tell me where to look for info on these. Here's...
3
by: JDeats | last post by:
I have some .NET 1.1 code that utilizes this technique for encrypting and decrypting a file. http://support.microsoft.com/kb/307010 In .NET 2.0 this approach is not fully supported (a .NET 2.0...
0
vikramadith
by: vikramadith | last post by:
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....
28
by: Todd Carnes | last post by:
I have read several threads regarding using ILMerge to combine all your dlls with your exe to create one single exe file....I don't get it. Why would you ever want to do this? Todd
1
by: kulabhishek | last post by:
Hi, I am using ILMerge tool to merge the all the dlls into one. In my case I do not want to include one dll into output one. But my other dlls are using the reference of that dll. How it can be...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.