link class librarys in just one

  • Thread starter Thread starter Bruno Neves Pires Silva
  • Start date Start date
B

Bruno Neves Pires Silva

Hello, everybody.

I have a solution that have two projects, two class librarys, that
generates two dlls. Its possible to link this two in a single dll to
distribute?
Thanx for the help
 
Bruno,

Well, the first (and most obvious) option is to just place the code
together into the same project and then recompile the whole thing.

The second option would be to compile from the command line (or change
the MSBUILD project file to compile the projects) and specify the target
type as a netmodule. Once you compile the two projects, you can use the
assembly linker tool (al.exe) to link to a single assembly. These tools are
included with the .NET framework.

The third option would be to find a tool that does this after both
assemblies are compiled into DLLs. There are some tools available that do
this. One out of Microsoft Research is ILMerge:

http://research.microsoft.com/~mbarnett/ILMerge.aspx

Although you have to be aware that the license doesn't allow you to use
it in commercial offerings.
 
Bruno,

Well, the first (and most obvious) option is to just place the code
together into the same project and then recompile the whole thing.

The second option would be to compile from the command line (or change
the MSBUILD project file to compile the projects) and specify the target
type as a netmodule. Once you compile the two projects, you can use the
assembly linker tool (al.exe) to link to a single assembly. These tools are
included with the .NET framework.

The third option would be to find a tool that does this after both
assemblies are compiled into DLLs. There are some tools available that do
this. One out of Microsoft Research is ILMerge:

http://research.microsoft.com/~mbarnett/ILMerge.aspx

Although you have to be aware that the license doesn't allow you to use
it in commercial offerings.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Bruno Neves Pires Silva said:
Hello, everybody.
I have a solution that have two projects, two class librarys, that
generates two dlls. Its possible to link this two in a single dll to
distribute?
Thanx for the help

Thanx for the help. Nicholas.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top