我已经创建了网站应用程序。我想像普通的webapplication一样添加exe文件 [英] i have create website application .i want to add the exe file like normal webapplication

查看:83
本文介绍了我已经创建了网站应用程序。我想像普通的webapplication一样添加exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友

我在asp.net framework 3.5中创建网站应用程序。

这里没有像webapplication那样创建exe文件。



如何将exe文件添加到此站点应用程序..



请帮助我的朋友..

Hi friends
I am create the website application in asp.net framework 3.5.
here not create the exe file like webapplication.

How am added the exe file to this site application..

please help me friends..

推荐答案

创建一个新的应用程序。在主窗体上删除Web浏览器控件并将其设置为填充表单。将目标URL属性设置为Web应用程序的URL。测试应用程序以确保它打开并正确运行您的Web应用程序。将构建配置更改为Release并构建项目。



打开计算机上的项目文件夹,找到Bin / Release文件夹...其中将是您的。 exe文件。



或者,你可以编写一个控制台应用程序,它会弹出用户默认浏览器传入你的网络应用程序的URL。这个过程是相同的,因为当您将构建更改为发布时,您将在Bin / Release文件夹中获得可以分发的.exe。



你应该意识到这并没有把你的ASP Web应用程序变成桌面应用程序......它只是将你的网站包装在exe中。 Web应用程序和桌面应用程序是两个完全不同的东西,没有办法将一个转换为另一个。
Create a new application. On the main form drop a web browser control and set it to fill the form. Set the target URL property to the URL of your web application. Test the app to make sure it opens and runs your web application correctly. Change the build configuration to Release and build the project.

Open the project folder on your computer, find the Bin/Release folder... in it will be your .exe file.

Alternately, you could write a console app that shells out the user''s default browser passing in the URL of your web app. The process is relatively the same in that when you change the build to release you will get an .exe in the Bin/Release folder that you can distribute.

You should realize that this doesn''t turn your ASP web application into a desktop application... it just wraps your web site in an exe. Web apps and desktop apps are two totally different things and there is no way to convert one to the other.


这篇关于我已经创建了网站应用程序。我想像普通的webapplication一样添加exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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