简体   繁体   English

我可以将DLL构建到类库中吗?

[英]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.

相关问题 如何在我的新 CSPROJ 类库中包含带有本机 dll 的 NuGet 包? - How can I include a NuGet package with native dlls in my new CSPROJ Class Library? 使用单独的DLL的类库中缺少DLL - Missing DLLs from a class library that uses separate DLLs 如何通过不将所有DLL与应用程序放在同一存储库中来在构建服务器上构建应用程序 - How can I build an application on a build server by not having all my DLLs in the same repository as the application 如何避免 Excel-DNA 加载项锁定外部库 dll? - How can I avoid Excel-DNA add-in from locking external library dlls? 如何在TFS中将已编译的Dll复制/使用到新版本中 - How can I copy/use already compiled Dlls into my new build in TFS 我可以在Visual Studio 2008中从C#项目构建2个或更多dll吗? - Can I build 2 or more dlls from C# project in Visual Studio 2008? 如何建立我的c#类库和参考? - How can I build my c# class library along with the reference? 类库在使用时会丢失引用(dll) - Class library loses references (dlls) when being used 在C#中合并外部dll和类库dll - Merge external dlls and class library dll in C# 我可以使用Xamarin / Portable类库来构建可以由Swift或Objective-C使用的C#库吗? - Can I use Xamarin/Portable Class Libraries to build a C# library that can be used by Swift or Objective-C?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM