如何在网站项目中创建dll文件

编程入门 行业动态 更新时间:2024-10-24 13:22:33
本文介绍了如何在网站项目中创建dll文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我是初学者我想在我的网站上添加dll文件。 有谁能告诉我如何创建dll文件以及如何在网站中使用dll fiel

解决方案

在Visual Studio中:

  • 创建DLL文件:

  • 转到文件 - > ;新 - >项目
  • 选择类库
  • 编写DLL文件的代码
  • 要将DLL文件添加为ASP.NET网站的引用:

  • 打开解决方案资源管理器
  • 右键单击关于ASP.NET网站的参考资料
  • 点击'添加参考...'
  • 转到'解决方案'(在VS 2012/2013,在VS 2010中,转到解决方案选项卡)
  • 选择DLL文件的项目
  • 点击'确定'
  • 希望这会有所帮助。

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

    这里有很好的解释,很好的参考。 www.c-sharpcorner/ 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:

  • To create a DLL file:

  • Go to File -> New -> Project
  • Select 'Class Library'
  • Write the code for your DLL file
  • To add the DLL file as reference to your ASP.NET website:

  • Open the Solution Explorer
  • Right-click on the References of your ASP.NET website
  • Click on 'Add Reference...'
  • Go to 'Solutions' (in VS 2012/2013, in VS 2010, go to the Solutions tab)
  • Select the project of your DLL file
  • 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. www.c-sharpcorner/uploadfile/mahesh/dll12222005064058am/dll.aspx[^]

    更多推荐

    如何在网站项目中创建dll文件

    本文发布于:2023-07-16 20:19:07,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1125505.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:文件   项目   如何在   网站   dll

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!