如何在网站项目中创建dll文件 [英] how to create dll file in website project

查看:78
本文介绍了如何在网站项目中创建dll文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是初学者我想在我的网站上添加dll文件。

有谁能告诉我如何创建dll文件以及如何在网站中使用dll fiel

解决方案

在Visual Studio中:



  1. 创建DLL文件:



    1. 转到文件 - > ;新 - >项目
    2. 选择类库
    3. 编写DLL文件的代码



  2. 要将DLL文件添加为ASP.NET网站的引用:



    1. 打开解决方案资源管理器
    2. 右键单击关于ASP.NET网站的参考资料
    3. 点击'添加参考...'
    4. 转到'解决方案'(在VS 2012/2013,在VS 2010中,转到解决方案选项卡)
    5. 选择DLL文件的项目
    6. 点击'确定'





希望这会有所帮助。


要创建一个,你可以添加一个新项目,完成所有代码并编译它。要添加到您的网站,只需在Visual Studio中右键单击您的网站,然后选择添加参考,然后浏览到您的dll。


这里有很好的解释,很好的参考。



http://www.c-sharpcorner.com/ uploadfile / mahesh / dll12222005064058am / dll.aspx [ ^ ]

i am beginner i want to add dll file in my website.
can anyone tell me how to create dll file and how use dll fiel in website

解决方案

In Visual Studio:


  1. To create a DLL file:


    1. Go to File -> New -> Project
    2. Select 'Class Library'
    3. Write the code for your DLL file


  2. To add the DLL file as reference to your ASP.NET website:


    1. Open the Solution Explorer
    2. Right-click on the References of your ASP.NET website
    3. Click on 'Add Reference...'
    4. Go to 'Solutions' (in VS 2012/2013, in VS 2010, go to the Solutions tab)
    5. Select the project of your DLL file
    6. Click on 'OK'



Hope this helps.


To create one you would add a new project, do all your code and compile it. To add to your website you just right click on your website in Visual Studio and choose Add Reference and browse to your dll.


Here is good reference with good explanations.

http://www.c-sharpcorner.com/uploadfile/mahesh/dll12222005064058am/dll.aspx[^]


这篇关于如何在网站项目中创建dll文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆