ILMerge is a utility for merging multiple .NET assemblies into a single .NET assembly. It works on executables and dlls alike. It comes with several options for controlling the processing and format of the output.
Questions tagged [ilmerge]
353 questions
6
votes
4 answers
How can I maintain two separate projects but merge them into one DLL?
I'm hoping that there is just something simple that I am missing here. I am trying to maintain two separate projects
ProjectName.Core &
ProjectName.Infrastructure
This is made in a typical Onion architecture so I can loosely couple my services and…

Nathan Palmer
- 1,970
- 1
- 20
- 28
5
votes
3 answers
CRM 2011, ILMerge and localization
I'm having some trouble merging the localization satellite assemblies into the plugin DLL for CRM2011.
Either that, or I don't know how to use the merged resources afterwards.
I create a few plugins and create a basic resource file (default -…

MBender
- 5,395
- 1
- 42
- 69
5
votes
1 answer
Dynamic loading working fine, except after the executable is ILMerged
This is strange.
I have a windows application that dynamically loads DLLs using Reflection.Assembly.LoadFrom(dll_file_name_here).
It works as expected, until I ILMerge the application with another DLL.
So this scenario works…

Steve
- 159
- 6
5
votes
3 answers
System.OutOfMemoryException when merging Newtonsoft.Json
I am creating a plugin to call a webservice. I need to serialize and deserialize the Json object. So, I need Newtonsoft.Json. I am trying to merge the dll from NewtonSoft.Json and my application dll using ILMerge.MSBuild.Task and ILMerge in Visual…

sabin
- 233
- 1
- 4
- 18
5
votes
2 answers
ILMerge - pdb associated with dll is out of date
Trying to build executable with all libraries inside with help of ILMerge:
"C:\Program Files (x86)\Microsoft\ILMerge\ILMerge.exe" MyScan.exe DirectShowLib.dll Google.Apis.Auth.dll Google.Apis.Auth.PlatformServices.dll Google.Apis.Core.dll…

vico
- 17,051
- 45
- 159
- 315
5
votes
0 answers
ILMerge targetplatform to 4.6.2 issue
I am trying to merge couple of dll's into one dll using ILMerge.exe.
I was able to do that earlier with the targetplatform as "v4".
Now, i am in need to merge 2 dlls' into 1 dll with the targetplatform as "4.6.2" by using the following…

Jey
- 2,137
- 4
- 22
- 40
5
votes
1 answer
ILMerge.Task Unresolved assembly reference not allowed
I have installed MSBuild.ILMerge.Task into my project using Nuget.
When i try to build my project , An error comes up :
Error : Unresolved assembly reference not allowed: ICSharpCode.SharpZipLib.
I searched everywhere but couldn't found anything…

alix54
- 444
- 1
- 5
- 13
5
votes
1 answer
How can I temporarily inactivate MSBuild.ILMerge.Task?
I am using the NuGet package MSBuild.ILMerge.Taskin order to combine .NET external dlls to a single executable file. It works like a charm.
Now, when I try to edit while Debugging, Visual Studio says:
Changes are not allowed if the assembly has not…

Xavier Peña
- 7,399
- 9
- 57
- 99
5
votes
1 answer
ILMerge using 2 third party dll's C++
I have written a program that utilizes 2 3rd party dll's and I want to use ILMerge to merge both dll's into 1 executable.
I have tried using the command line:
ilmerge /target:winexe /out:final.exe normal.exe 3rd_party_dll_1.dll 3rd_party_dll_2.dll…

Nick Sinas
- 2,594
- 11
- 42
- 51
5
votes
1 answer
Specify files to merge with MSBuild.ILMerge.Task
I have a solution which creates multiple .dll and .exe files. I now want to merge some .dll files with the executables. I discovered the MSBuild.ILMerge.Task NuGet package, which by default merges all .dll files into the executable. This is working…

m-rm
- 340
- 2
- 17
5
votes
1 answer
Drawbacks, advantages, etc. between ILMerge or ResolveAssembly for embedding assemblies?
Currently I know of two methods of embedding assemblies into one application file: ILMerge and using the ResolveAssembly event.
I would like to know if anyone have had more success with one over the other.
Is there any drawbacks from using either…

Stécy
- 11,951
- 16
- 64
- 89
5
votes
0 answers
Is there a way to allow unresolved assembly reference in ILMerge?
I am building a library and have a third-party assembly that, for whatever reason I want to package as an embedded resource and not expose as an additional DLL.
My client ILMerges my library into their executable. However, if I give them my…

afeygin
- 1,213
- 11
- 26
5
votes
2 answers
Using Two Different Versions of the Same Library
I am developing a small library that will be used across multiple applications. I would like to use some third-party libraries within my own library (e.g. log4Net, Entity Framework, etc.). I would imagine I can either deploy the DLLs alongside my…

Phil Sandler
- 27,544
- 21
- 86
- 147
5
votes
2 answers
Executable fails with weird exception
I am using ILMerge and Quartz.NET in a C# .NET 4.0 Windows Service application. The app runs fine without using ILMerge, but now that we're nearing shipping release, I wanted to combine all DLLs into a single executable.
Problem is, that ILMerge…

James Stone
- 487
- 7
- 16
5
votes
1 answer
Void System.Threading.Monitor.Enter Error when using ILMerge
I'm trying to use ILMerge to combine my C# program with 3 referenced DLL's. If I run the program without merging them, everything runs well but when I merge them I get the "Void System.Threading.Monitor.Enter" Error.
Here are the DLL's I am…

Reg
- 555
- 5
- 10
- 26