如何将ASP.NET应用程序转换为EXE [英] How to convert an ASP.NET application to EXE

查看:62
本文介绍了如何将ASP.NET应用程序转换为EXE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个关于如何将ASP.NET Web应用程序部署到可执行(.exe)文件的问题,就像我们在Windows应用程序中一样?

Hi,

I have a question about how to deploy an ASP.NET web application to an executable (.exe) file like we do in a windows application?

推荐答案

为什么要这样?

你想将Web应用程序安装到计算机/服务器上吗?
如果是,您可以使用网页设置项目 [ ^ ]
Why do you want that?
Do you want to install the web application to a computer/server??
If yes you can use Web Setup Projects[^]


你不能。它不是一个exe,根本不是。无法转换它。
You can't. It's not an exe, not at all. There is no way to convert it.


为您的解决方案创建一个安装项目,并安装一个安装程序,安装您的Web应用程序并分发。



以下是为Web应用程序创建安装应用程序的分步指南:

http://www.c-sharpcorner.com/UploadFile/shrijeetnair/StepbyStepSetup11102005033122AM/StepbyStepSetup.aspx [ ^ ]



我希望这会让你的生活更轻松。也请你运行你的安装后脚本来创建数据库和所有。简单来说,创建一个备份并在安装过程中使用SMO恢复它。



干杯。
Create a setup project for your solution and crate an installer which would install your web application and distributed.

Here is step by step guide to creating a setup application for Web application:
http://www.c-sharpcorner.com/UploadFile/shrijeetnair/StepbyStepSetup11102005033122AM/StepbyStepSetup.aspx[^]

I hope this would make your life easier. Also please be sire you run your post installation script to create database and all. To be simple, create a backup and restore it during installation using SMO.

Cheers.


这篇关于如何将ASP.NET应用程序转换为EXE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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