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:
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