将Asp.net Web应用程序转换为单个.dll文件 [英] Convertiong of Asp.net Web application into single .dll file
本文介绍了将Asp.net Web应用程序转换为单个.dll文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我想将我的ASP.Net Web应用程序转换为单个.dll文件以用于托管目的..
任何人都可以指导我,我该怎么做..请..
提前谢谢..
Hello,
I want to convert my ASP.Net Web application into single .dll file for the hosting purpose..
Can anybody guide me, how i can do it..Please..
Thanks in advance..
推荐答案
简介
我担心,你不能这样做。要了解部署应用程序的方法,请参阅 - Visual Studio和ASP.NET的Web部署概述 [ ^ ]。
原因
基本上, Web应用程序如果两者都有效前端 Mark-Up (aspx
)和bin
文件夹(由构建版本组成) 代码隐藏文件)存在于服务器上。
Aspx
页面已加载当您打开 WebSite / Web应用程序并且在bin c> bin中存在
dll
的帮助下执行相应的代码code>文件夹。
所以,你不能让整个应用程序一个dll
,那里将是aspx
中的文件。
Web部署包
相反,你可以创建包f或 Web App ,这将是zip
文件。
要知道如何创建此包并将其部署在IIS
中,按照 - 如何:在Visual Studio中创建Web部署包 [ ^ ]
Introduction
I am afraid, you can't do that. To know the methods to deploy the app, refer - Web Deployment Overview for Visual Studio and ASP.NET[^].
Reason
Basically, Web Application works if both front-end Mark-Up (aspx
) andbin
folder (consisting of build version of Code Behind Files) are present on server.
Aspx
page is loaded when you open the WebSite / Web Application and corresponding code is executed with the help ofdlls
present inside thebin
Folder.
So, you can't make the whole app onedll
, there will beaspx
files in it.
Web Deployment Package
Instead you can create Package for the Web App, which will be azip
file.
To know how to create this Package and deploy it inIIS
, follow - How to: Create a Web Deployment Package in Visual Studio[^]
这篇关于将Asp.net Web应用程序转换为单个.dll文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文