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开发者_如何学Go even possible? thanks..
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).
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.
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.
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 .
精彩评论