Visual Studio 2010 - 发布 Windows 窗体或 WPF 应用程序 [英] Visual Studio 2010 - Publishing a Windows Form or WPF application

查看:61
本文介绍了Visual Studio 2010 - 发布 Windows 窗体或 WPF 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在环顾四周,除了:http://msdn.microsoft.com/en-us/library/31kztyey.aspx 我没有找到有关如何发布我编写的 Windows 表单应用程序的信息.

I've been looking around and other than: http://msdn.microsoft.com/en-us/library/31kztyey.aspx I have found no information on how to publish a Windows form application I have written.

我已设法在本地计算机上发布并安装我的应用程序,但不是按照我预期的方式进行.我希望能够压缩包含我已发布项目的文件夹并将其上传到某个地方,此时人们可以下载 zip 文件并安装我的应用程序.发布向导似乎无法以这种方式发布,或者如果可以,则相当不清楚.

I have managed to publish and then install my application on my local computer, but not in the way I had intended. I was hoping to be able to zip up the folder containing my published project and upload it somewhere, at which point people can download the zip file and install my application. The publishing wizard doesn't seem to be able to publish in such a way, or if it is, it is fairly unclear.

有人能指出我正确的方向吗?如果需要,我还可以说明我想做什么.

Can anyone point me in the right direction here? I can also clarify what I would like to do if need.

推荐答案

您可以创建安装项目 ( File-> New -> Project -> Other Project Type -> Setup and Deployment -> Visual Studio Installer -> Setup Project ).因此,在解决方案资源管理器中,您可以添加现有项目.添加项目后,您可以在文件系统窗口中添加您的程序输出(右键单击应用程序文件夹 -> 添加 -> 项目输出...),以便从项目组合框中选择您的项目).添加您的项目输出后,您可以构建您的安装项目,您将在安装项目中拥有您的安装文件.有关更多信息,您可以查看:

You can create Setup Project ( File-> New -> Project -> Other Project Type -> Setup and Deployment -> Visual Studio Installer -> Setup Project ). So, in Solution Explorer, you can add existing project. After add your project, you can add your program output in File System window( Right click on Application Folder -> Add -> Project Output ... ), so you select your project from Project ComboBox ). After adding your project output, you can build your setup-project and you will have your setup file in your setup-project. For more information you can check :

创建设置和部署的步骤

设置项目

这篇关于Visual Studio 2010 - 发布 Windows 窗体或 WPF 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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