Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I merge multiple .net assemblies into a single assembly?

Tags:

I have a .net application with about 10 assemblies. It would be nice to have them all together as a single assembly. How do I do it?

I guess something like a jar file for Java applications.

like image 818
Russell Avatar asked Dec 01 '09 22:12

Russell


People also ask

How do I merge DLL files?

Install with Nuget (selecting the correct default project in the Package Manager Console). It merges the all DLLs marked "Copy Local" = true and produces a merged . EXE (alongside the standard output, most of which is now not necessary) which is also compressed. This can then be used standalone.

What is ILRepack?

ILRepack is a tool that allows you to merge multiple assemblies into a single assembly. This can be useful when you deploy an application that has a few dependencies. In this case, you can merge all the dll and the exe into a single exe file, so it's easier to deploy it. It's also useful if you create a NuGet package.

What is assembly in .NET explain with an example?

An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality. Assemblies take the form of executable (.exe) or dynamic link library (. dll) files, and are the building blocks of . NET applications.

What are the different types of .NET assemblies?

There are three types of assemblies: Private assemblies. Shared assemblies. Satellite assemblies.


1 Answers

Try ILMerge.

NuGet package here

like image 133
Andy West Avatar answered Oct 04 '22 04:10

Andy West