请告诉我如何在Visual Studio2005中为我的网站项目(C#.Net)制作dll文件

问题描述:

您的一个人说sir.k告诉我如何使我的项目成为单个dll文件以使用iis7进行配置.

One of your people said sir.k tel me how to make my project to single dll file to configure with iis7

>创建类库项目(不是控制台).
>添加文件和代码
>编译该文件,将生成一个.dll(将在项目下的bin \ Debug目录中)
>创建一个新的网站项目
>通过
添加.dll的引用
>点击添加参考
>导航到类库文件夹
>进入debug文件夹,然后添加


对dll的引用将添加到您的网站
> Create class library project(not console).
> Add files and code
> Compile this file a .dll will be generated (It will be in bin\Debug directory under your project)
> Create a new web-site project
> Add the Reference of the .dll by

> Click on Add Reference
> Navigate to the class library folder
> Go into the debug folder, and Add


The reference to the dll will be added to your website