ilmerge

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 ILMerge to reduce deployment friction, if that is even possible. James Pogran ...

ILMerge and Web Resources

Hello all, We're attemtping to merge our DLL's into one for deployment, thus ILMerge. Almost everything seems to work great. We have a couple web controls that use ClientScript.RegisterClientScriptResource and these are 404-ing after the merge (These worked before the merge). For example one of our controls would look like namespace...

C# Compiler Incorrectly Optimizes Code

I have a ASP.NET application running on a remote web server and I just started getting this error: Method not found: 'Void System.Collections.Generic.ICollection`1..ctor()'. I disassembled the code in the DLL and it seems like the compiler is incorrectly optimizing the code. (Note that Set is a class that implements a set of unique o...

ILMerge and 3rd party assemblies

I have a project with quite a few dependencies and would like to cut down on the number of assemblies being distributed. My project depends on external 3rd party dependencies such as Oracle.DataAccess and log4net. I am thinking if I could distribute this as one assembly as this is a sort of common utilities library and used in several o...

Best practices for merging assemblies?

I am wondering what are the heuristics when creating releases of libraries to be included in other projects in relation to dependencies and if I should include them or not. My problem is the following: I have a CommonUtilities library that provides as the name implies a set of utilities that can be used in more than one place. Dependen...

How to use IlMerge in a Setup Project?

I have use IlMerge to merge all the dlls of my projects in one exe. I use a targets file which is referenced in the "import" of the main csproj. The ExecCommand in the targets is: <Exec Command="&quot;$(ProgramFiles)\Microsoft\Ilmerge\Ilmerge.exe&quot; /out:@(MainAssembly) &quot;@(IntermediateAssembly)&quot; @(IlmergeAssemblies->'&qu...

Does ilmerge optimize the output?

I have a number of DLLs that are merged using the ILMERGE.EXE tool from Microsoft. All the DLLs have 'optimize my code' unchecked. When trying to debug code in a web application the modules screen (in Visual Studio) shows the dll has been optimized. This obviously causes a problem when trying to debug certain parts of the application. ...

How do you sign an assembly that was generated by an ILMerge operation?

I managed to use ILMerge to merge all the assemblies I have in my project into a single assembly, but the problem is there doesn't seem to be a way to sign the merged assembly. Is there some sort of command line option or command that I can run that would let me add a strong name to the merged assembly generated by ILMerge? ...

ILMerge and Custom Attributes on classes

I merged some dll files together and now my code that would find classes in one of the merged dll files cannot see the custom attributes I had on them. It can find all the classes fine but the attributes are missing. Any ideas how I can remedy this? Edit: Further investigating show that the attributes are on the class but the Guid for t...

ILMERGE icon for final .exe

I have a couple of dlls and an .exe file (call it input.exe). These are currently merged into a single output.exe file using ILMERGE. The input.exe file has an icon with it. However the output.exe that is created does not have the icon in input.exe So to sum it up, I would like to have an icon for the output.exe (that is created usi...

How can I add, delete, and update resources in CLR assemblies?

I've taken a long look around and can't find any information on altering managed resources in assemblies (note that I'm already familar with Win32 resources and the APIs for altering those). My application has resources that need to be updated by the end user and the application will be distributed as a single executable (so I can't jus...

Is it possible to remove unused code/assemblies in .NET?

I have a control library in my application that's a bit big for the type of application I'm developing. The library is more than 2Mb and I barely use it's functionality, I would say I use like 5% to 10% of all it's functionality. Is there anyway to remove code that my application never uses from the library? P.S: The library is not dev...

Merging dlls into a single .exe with wpf

Hi, 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 question is: Is there a way to merge a WPF project with multiple dependencies into a si...

Is there a way in Visual Stuio's compilation settings to combine other referenced DLLs into the built assembly?

I have an EXE that I want to distribute, but I don't want to ship all the associated DLLs with it (sort of). Currently I package them all together using .NET Reactor. I tried ILMerge a while back to achieve the same, but when I tried it I ran into trouble - .NET Reactor has never, ever failed me. Is there a way to achieve this in the ...

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 gain a greater flexibility. The Infrastructure project references the Core project. Once...

Nant Task For IlMerge 2.9.210.0

Anyone know where I can get a Nant task for ILMerge 2.9.210? I have tried this http://code.google.com/p/ilmerge-tasks/ but it is built against ILMerge 2.0.7.28 of ILMerge. It says that the new project is at ilmerge.xpdm.us (sorry new user, can't post 2 hyperlinks) but that link doesn't seem to work for me. Anyone got any other ideas? ...

Is it possible to successfully merge transitive assembly references with ILMerge?

I'm trying to use ILMerge to internalize some transitively referenced assemblies into an assembly I'm referencing to eliminate conflicts with those transitive dependencies elsehwere in my project. In particular, I'm referencing Antlr3.StringTemplate (hereafter referred to as AS, available here: http://www.stringtemplate.org/download.htm...

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 around that? ...

Are there size limitations to the .NET Assembly format?

We ran into an interesting issue that I've not experienced before. We have a large scale production ASP.NET 3.5 SP1 Web App Project in Visual Studio 2008 SP1 which gets compiled and deployed using a Website Deployment Project. Everything has worked fine for the last year, until after a check-in yesterday the app started critically fail...

When & How to use ILMerge with Visual Studio Project / Solution

I'm developing a medium sized enterprise application. There are many projects / solutions to this. For example: Company.Data Company.Data.LinqToSql Company.Entities (business objects) Company.BLL I then have some applications - for example a windows service: MyWindowsService. When i deploy this (by creating a setup project) it in...