将asp.net webapplication项目转换为exe。 [英] convert a asp.net webapplication project into an exe.

查看:109
本文介绍了将asp.net webapplication项目转换为exe。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将asp.net webapplication项目转换为microsoft visual studio 2010的exe文件。



我遵循的步骤是:



文件 - 添加 - 新项目 - 其他项目类型 - 可视工作室安装程序 - 设置向导 - 将其命名并在E驱动器中提供位置 - 接下来 - 为Web应用程序创建设置 - 下一步 - 从我的网络应用程序显示内容文件的checbox -i检查它 - 我没有包含任何其他文件,然后单击下一步终于完成。现在构建安装.build成功并在调试文件夹中找到一个设置.msi文件但是当我运行它它给了我错误



这个系统需要互联网信息服务器5.1或更高版本以及Windows XP或更高版本。这个安装程序无法安装在Windows 2000上。请安装互联网信息服务器或更新的操作系统再次运行此设置。



请指导我应该怎么做,以便我可以在任何计算机上运行此exe。

how to convert an asp.net webapplication project into an exe file for microsoft visual studio 2010.

steps which i followed are :

file- add - new project - other project types - visual studio installer -set up wizard-named it and provide it a location in E drive - next - create a setup for webapplication - next -showing the checbox for content files from my web application -i checked it -i havn''t include any additional file and click next an finally finish.now build the setup .build succeedeed and found a setup .msi file in debug folder but when i run this it gave me error

this system requires internet imformation server 5.1 or higher and windows xp or higher.this setup can not be installed on windows 2000.please install internet imformation server or a newer operating system and run this setup again.

please guide me what should i do so that i can run this exe on any computer.

推荐答案

忘了它。使用遗留代码编写新应用程序作为参考和测试。没有转换。而且,试着摆脱你的Web编程习惯。 Windows编程是非常不同的。



下一次,尽力隔离代码中可能独立于应用程序类型和UI的部分,尝试使其独立域名尽可能大。



不幸的是,我们没有足够的资源来定期为您提供指导。只是不断提出问题,但要使它们定义明确且比这个更具体。



-SA
Forget about it. Write a new application using your legacy code just as a reference and for testing. There is no "conversion". Moreover, try to get rid of your Web programming habits. Windows programming is very different.

Next time, do your best to isolate the parts of your code which can be independent from application type and UI, try to make this independent domain as big as possible.

Unfortunately, we don''t have resources to guide you on regular basis. Just keep asking questions, but make them well-defined and more specific than this one.

—SA

这篇关于将asp.net webapplication项目转换为exe。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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