发布要通过电子邮件发送的Windows应用 [英] Publish Windows App to be Emailed

查看:113
本文介绍了发布要通过电子邮件发送的Windows应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序的最终版本(使用WPF制作).我要发布它,以便可以将安装文件通过电子邮件发送给其他人. Visual Studio 2013发布向导显示的唯一选项是来自网站",来自UNC路径或文件共享"或来自CD-ROM或DVD-ROM".

I have a finished version of an app (made using WPF). I want to publish it so that the installation files can be emailed to another person. The only options shown with the Visual Studio 2013 Publish Wizard are "From a Web site", "From a UNC path or file share", or "From a CD-ROM or DVD-ROM".

我如何发布该应用程序,使其进入我的桌面上一个漂亮整洁的文件夹,我可以简单地将其压缩并通过电子邮件发送给某人?他们可以简单地将其解压缩,单击设置",然后按照传统的设置向导进行操作.它需要能够通过Windows 8在Windows XP上运行.

How can I publish the app so that it goes into a nice and tidy folder on my Desktop which I can simply zip up and email it to someone? To which they can simply unzip, click setup, and follow the traditional setup wizard. It needs to be able to run on Windows XP thru Windows 8.

(如果相关,我有应用程序使用的.csv文件和图像文件.)

(I have .csv files and image files that the application uses, if it is relevant.)

推荐答案

Visual Studio中,突出显示要部署的项目,然后右键单击.这将弹出一个上下文菜单,上面有一个'Publish'项目...

In Visual Studio, highlight the project you want to deploy and right click. This will raise a context menu which has a 'Publish' item on it...

选择此选项将引发这样的Wizard ...

Selecting this will raise a Wizard like this...

从此处选择完成".这将创建一个目录,其中包含Setup.exe和所有必需的文件,以将应用程序安装在不同的计算机上(考虑到安全级别允许,第三方软件限制以及许多其他部署问题).然后,您可以创建一个zip文件(保留目录结构)并通过电子邮件发送.

From here, select 'Finish'. This will create a directory with a Setup.exe and all the necessary files to install the application on a different machine (given security levels permit, third party software restrictions, and a host of other deployment issues). You can then create a zip file (keeping the directory structure) and email it.

"Publish"功能上还有您要探索的其他选项,例如Click Once.

The 'Publish' feature has other options on it you will want to explore, like Click Once.

这篇关于发布要通过电子邮件发送的Windows应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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