user29964
user29964

Reputation: 15990

How do you compile different classlibraries to one dll?

The question explains it all. I have different class libraries but I would like to compile them into one general DLL.

Is this possible?

I'm using .NET 3.5 with visual studio 2008.

Upvotes: 2

Views: 863

Answers (2)

Sijin
Sijin

Reputation: 4550

If you're trying to build the one dll without source then ILMerge is the best option. Otherwise you can use the assembly linker with a batch file or MSBuild to build the single assembly.

Here's some background info on this How to: Build a Multifile Assembly - http://msdn.microsoft.com/en-us/library/226t7yxe(VS.90).aspx

Multi-file Assemblies: What and How - http://blogs.msdn.com/grantri/archive/2004/07/07/175745.aspx

Upvotes: 1

Jon Skeet
Jon Skeet

Reputation: 1500893

See whether ilmerge (homepage / download site) does what you want it to:

ILMerge is a utility that can be used to merge multiple .NET assemblies into a single assembly. It is freely available for use from the Tools & Utilities page at the Microsoft .NET Framework Developer Center.

Upvotes: 10

Related Questions