开发者

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.


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜