[英]Can I build DLLs into a Class Library
I am creating a web application in Visual Studio 2010 (C#). 我正在Visual Studio 2010(C#)中创建一个Web应用程序。
I have one project that contains several classes that are shared between multiple projects. 我有一个项目,包含多个项目之间共享的几个类。
Within that project I also have the AJAXToolkit dll. 在该项目中,我还有AJAXToolkit DLL。
Each of my other projects has a reference pointing to the shared project. 我的每个其他项目都有一个指向共享项目的引用。
But I also have to setup a reference to the AjaxToolkit.dll in order to build. 但我还必须设置AjaxToolkit.dll的引用才能构建。
Is there a way to have the AjaxToolkit.dll included in the shared project reference, so I don't have to reference both? 有没有办法让AjaxToolkit.dll包含在共享项目引用中,所以我不必同时引用它们? (Basically only have the one shared dll in stead of both)
(基本上只有一个共享dll而不是两个)
I hope this makes sense. 我希望这是有道理的。
Looks like you are looking for ILMerge . 看起来你正在寻找ILMerge 。
ILMerge is a utility for merging multiple .NET assemblies into a single .NET assembly.
ILMerge是一个用于将多个.NET程序集合并到单个.NET程序集中的实用程序。 It works on executables and DLLs alike and comes with several options for controlling the processing and format of the output
它适用于可执行文件和DLL,并带有几个选项来控制输出的处理和格式
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.