CSharpNoob
CSharpNoob

Reputation: 1301

Two or more projects in 1 Assembly?

I want 2 or more DLLs in one Assembly. How can I do this in .NET(VS) or is it even possible? thanks..

Upvotes: 0

Views: 125

Answers (4)

Abyx
Abyx

Reputation: 12918

You can compile them to netmodules, and then link them together with link.exe .

To compile from MSVS, you should edit project files (depends on language), and then use empty C++\CLI project to use link.exe .

Upvotes: 0

Mark Seemann
Mark Seemann

Reputation: 233162

You can't have two or more .dlls in the same assembly, but you can have two or more assemblies in one .dll. ILMerge is one way to do it.

Upvotes: 1

Jon Skeet
Jon Skeet

Reputation: 1501043

You might want to look at ILMerge.

ILMerge is a utility for merging multiple .NET assemblies into a single .NET assembly. It works on executables and DLLs alike and comes with several options for controlling the processing and format of the output. See the accompanying documentation for details.

Upvotes: 1

Marc Gravell
Marc Gravell

Reputation: 1063013

ILMerge would be the first thing to look at. It combines multiple assemblies into a single assembly (note that the core runtime is still required, etc; it isn't a full linker).

Upvotes: 1

Related Questions