Questions tagged [ilmerge]

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.

353 questions
94
votes
7 answers

How to merge multiple assemblies into one?

I consuming my service stack using EXE project (startup task for azure application) in that I have copied following service stack's DLL & some Azure's DLLs in to EXE project. When I build this EXE project then Azure DLLs will be bundled with my EXE…
Arun Rana
  • 8,426
  • 14
  • 67
  • 107
86
votes
18 answers

Visual Studio Rebuilds unmodified projects

So, as the title reads, I have a VS2010 solution with ~50 projects in it right now. If I make a change to a "top level" project that nothing references then VS still rebuilds all 50 projects. I'm running Visual Studio 2010 Ultimate without any…
Matt Klein
  • 7,856
  • 6
  • 45
  • 46
81
votes
9 answers

How to Integrate ILMerge into Visual Studio Build Process to Merge Assemblies?

I want to merge one .NET DLL assembly and one C# Class Library project referenced by a VB.NET Console Application project into one command-line console executable. I can do this with ILMerge from the command-line, but I want to integrate this…
AMissico
  • 21,470
  • 7
  • 78
  • 106
74
votes
14 answers

Merge DLL into EXE?

I have two DLL files which I'd like to include in my EXE file to make it easier to distribute it. I've read a bit here and there how to do this, even found a good thread here, and here, but it's far too complicated for me and I need real basic…
Momro
  • 971
  • 1
  • 10
  • 16
73
votes
12 answers

ILMerge Best Practices

Do you use ILMerge? Do you use ILMerge to merge multiple assemblies to ease deployment of dll's? Have you found problems with deployment/versioning in production after ILMerging assemblies together? I'm looking for some advice in regards to using…
James Pogran
  • 4,279
  • 2
  • 31
  • 23
68
votes
10 answers

Merging dlls into a single .exe with wpf

I'm currently working on a project where we have a lot of dependencies. I would like to compile all the referenced dll's into the .exe much like you would do with embedded resources. I have tried ILMerge but it can't handle .xaml resources. So my…
Farawin
  • 1,375
  • 2
  • 14
  • 19
51
votes
6 answers

using ILMerge with .NET 4 libraries

Two problems: 1) Basic .NET Assembly Not Included in ILMerged Assembly I'm having trouble using ILMerge in my post-build after upgrading from .NET 3.5/Visual Studio 2008 to .NET 4/Visual Studio 2010. I have a Solution with several projects whose…
Sarah Vessels
  • 30,930
  • 33
  • 155
  • 222
43
votes
6 answers

ILMerge DLL: Assembly not merged in correctly, still listed as an external reference

In the build process for a .NET C# tool, I have been using ILMerge to merge the assemblies into a single exe. I added a new class library recently, and now the ILMerge is failing. I have remembered to tell it to merge in the new DLL! It is now…
Fiona - myaccessible.website
  • 14,481
  • 16
  • 82
  • 117
41
votes
2 answers

ILMerge hangs on merge

I am using ILMerge to combine 9 .NET DLL's written in C# .NET 4. The problem is ILMerge gets stuck, no error message or anything. The log shows that ILMerge merges all the assemblies correctly, then sets out to write the target assembly. It runs the…
prestomanifesto
  • 12,528
  • 5
  • 34
  • 50
25
votes
1 answer

Is there a way to merge pdb files with ilmerge?

For various reasons we use ilmerge to put all of our application assemblies into one file so the user needs to handle just one file. Unfortunately it seems that there is no way to merge the .pdb files with the assemblies. Anyone knows a way to work…
Patrick
  • 1,328
  • 10
  • 19
17
votes
10 answers

BinaryFormatter.Deserialize "unable to find assembly" after ILMerge

I have a C# solution with a referenced dll (also C# with the same .Net version). When I build the solution and run the resulting exe, without merging the exe and the referenced dll, everything works fine. Now I want to merge these into one exe. I…
Mike Park
  • 10,845
  • 2
  • 34
  • 50
15
votes
2 answers

In a VS Setup project, how can I exclude the dependencies of a project from the MSI?

I'm working in C#. I have a small VS Solution with 4 projects: a DLL an EXE that references the DLL a merge project, that does nothing more than ILMerge on the assemblies from the prior two steps a setup project, that packages the .EXE output…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
14
votes
2 answers

ILMerge exception when trying to merge pdb file

I'm trying to merge two assemblies into a single assembly, which works quiet fine. Yet, when I try to merge the *.pdb files too, I get an error: Access to the path "F:\Fentec\Businessplan\trunk\Ausgabe\Debug\modules\Planrechnung\Planrechnung.pdb"…
Skalli
  • 2,707
  • 3
  • 27
  • 39
14
votes
3 answers

Is there a ILMerge equivalent tool for Mono?

I'm looking for a open source tool to merge multiple .NET assemblies into a single assembly.
tgiphil
  • 1,242
  • 10
  • 22
13
votes
3 answers

ILMerge and localized resource assemblies

We have an application whose structure when compiled looks something like this: Foo nb-NO Text.resources.dll sv-SE Text.resources.dll Bar.dll Foo.exe Text.dll Is it possible to use ILMerge on this? How would you do that?
Svish
  • 152,914
  • 173
  • 462
  • 620
1
2 3
23 24