0

How Do I Include References in an ASP.NET web site?

In a typical C# program, when you want to include a name space, it is fairly easy to inculde the reference in the Visual Studio project.

I am trying to rebuild a asp.net C# web site from scratch -- that is modeled after an already existing asp.net C# web site. In the preexisting project, the .aspx files have tags such as " components probably do not need any special declaration and the project will run fine immediately after construction. I also unserstand what the "tel" tags are for (it is for a plug-in that is part of a third party compoenent that actually adds content to Visual Studio so that I can create a new project of that type).

But the "sue" referrs to a dll that is proprietory to where I work. I need to include that DLL (and/or pdb file) in a new project. How do I do this?

4

2 回答 2

3

视觉工作室 2012

  • 右键单击references解决方案资源管理器 => 单击add reference进入,the reference manager 然后浏览您的 dll 文件。

  • 您也可以将公共第三方包添加到您的项目中Project / Manage Nuget Packages

视觉工作室 2010 & 2008

  • Project => Add Reference(打开引用管理器),然后浏览 DLL
于 2013-07-15T21:25:02.437 回答
1

首先,检查您是否有ASP.NET WebSiteAsp.net WebApplication

如果是 ASP.NET 网站:在解决方案资源管理器窗口中,您可以右键单击网站 --> 添加引用

如果它是一个 Web 应用程序:所以您也可以右键单击网站-->添加参考右键单击参考->添加参考。

于 2013-07-15T21:39:55.997 回答