Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Merging .net managed dlls

Tags:

.net

dll

I have a managed dll "Sample.dll" that I use to build my dll "myDLL.dll". But I want to distribute 1 dll ("myDLL.dll") file only. How do i merge them?

like image 235
Shawn Mclean Avatar asked Jan 28 '10 16:01

Shawn Mclean


2 Answers

ILMerge works well, and does this, for the most part.

Be aware, though, that there are issues if you're doing this with WPF assemblies containing Xaml. I suspect that Workflow 4 projects may have the same issues. The embedded Xaml doesn't get merged properly with ILMerge.

There are some commercial tools, however, the claim to support assembly merging with WPF projects, including .NET Reactor and SmartAssembly.

like image 187
Reed Copsey Avatar answered Sep 28 '22 11:09

Reed Copsey


Using ILMerge: Merging .NET assemblies using ILMerge

like image 22
Mitch Wheat Avatar answered Sep 28 '22 11:09

Mitch Wheat