简体   繁体   English

如何将DLL引用添加到.NET WebAPI项目?

[英]How do you add a DLL reference to a .NET WebAPI project?

I am using Visual Studio 2012 and .NET 4.5 and the new WebAPI project type. 我正在使用Visual Studio 2012和.NET 4.5以及新的WebAPI项目类型。 However, I am unable to add a reference to my class library project to the WebAPI project. 但是,我无法将我的类库项目的引用添加到WebAPI项目。 Does this need to be a "portable class library" project or can it be a regular one? 这需要是一个“便携式类库”项目还是常规项目? There's no error, it just doesn't get added! 没有错误,它只是没有添加!

Alrighty so in Visual Studio 2012 there's a check box next to each reference you want to add, in the add references menu. Alrighty所以在Visual Studio 2012中,在添加引用菜单中,您要添加的每个引用旁边都有一个复选框。

It's very non-intuitive. 这非常不直观。 We've gone away from selecting things by highlighting and have moved to check boxes. 我们通过突出显示已经离开选择的东西,并已移动到复选框。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将.NET dll引用添加到UWP项目? - How to add .NET dll reference to UWP project? 如何将dll配置文件添加到将dll作为引用添加到的项目? - How to add a dll config file to a project that add the dll as reference? 如何在 Visual Studio 中添加对项目的 a.dll 引用 - How to add a .dll reference to a project in Visual Studio .NET项目参考:如何通过参考项目参考dll? - .NET Project Reference: How to reference a dll via a referenced project? 我可以从 .NET 6 项目中添加对 .NET 框架 DLL 的引用吗? - Can I add a reference to a .NET Framework DLL from a .NET 6 project? 如何在单独的项目中调用或调用DLL方法而不在解决方案资源管理器中将其声明为参考? - How do you call or invoke a DLL method from a separate project without declaring it as a reference in the solution explorer? 如何向 ASP.Net WebApi 使用的 MediaTypeFormatters 添加新的 MediaType? - How do you add a new MediaType to the MediaTypeFormatters used by ASP.Net WebApi? 使用命令在.NET项目中将外部DLL文件添加为“参考” - Using command to add an external DLL file as “Reference” in a .NET project 在.net项目中添加对msvcr90.dll的引用 - add reference to msvcr90.dll in .net project 如何在xamarin Studio / monodevelop中为我的项目添加system.core.dll引用 - How do I add a system.core.dll reference to my project in xamarin studio/monodevelop
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM