如何.exe为Wpf应用程序 [英] How to .exe for Wpf application

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

问题描述

HI,



我想为wpf应用程序创建一个.exe文件只有exe文件我想发送另一个人安装和工作,我怎么能创建.exe文件,可以指导我或发送片段

解决方案

在学习编程工作的基本知识之前,你不应该开发WPF和其他高级的东西,除非你只想浪费很多时间。只要您创建以某种方式运行的任何应用程序,您就已经创建了.EXE文件。如果位于输出目录中。输出目录的位置存储为相对于项目文件位置的路径,在项目文件中。



很多人说:这是bin \ Release和bin \Debug,但这不是真的(这只是两个预定义配置的默认值)。正确答案是:这是您可以根据项目选项定义的每个配置创建的目录。可以在项目文件(名为OutputPath的XML元素下的文本节点,适用于所有.NET项目)或项目属性下的VS IDE中的构建选项卡中找到。在没有正式安装的情况下部署应用程序的过程意味着将输出目录的内容传递给用户。



-SA

构建项目后,Visual Studio将自动生成exe文件。默认输出路径是bin \Debug \。你可以通过以下方式找到它:右键单击项目根目录 - >属性 - > build


有很多产品,比如'Advanced Installer'(google it),它有免费版本,可以很容易地创建一个安装程序,以确保像.NET这样的东西安装,安装程序,添加快捷方式等。如果您有一个更复杂的SQL Server数据库,您的用户需要能够附加或创建数据库,并在您的应用程序中配置它们的连接字符串。


HI ,

I want to create a .exe for wpf application so that exe file only i want to send another person to install and work , how can i create .exe file,can u guide me or send snippets

解决方案

You should not develop WPF and other advanced stuff before learning very basic things on how programming work, unless you want just to waste a lot of time. Is soon as you create any application which somehow runs, you already have .EXE file created. If is located in your output directory. The location of output directory is stored as a path relative to the location of your project file, in your project file.

Many says: "this is bin\Release and bin\Debug", but this is not true (this is just the default for two predefined configurations). Correct answer is: this are directories you can create per Configuration which is defined by your project options. The can be found in a project file (a text node under the XML element named OutputPath, for all .NET projects) or in the VS IDE under Project Properties, the tab "Build". The process of deployment of the application without formal installation means delivering the content of the output directory to the user.

—SA


After building your project, Visual Studio will generate the exe file automatically. the output path by default is "bin\Debug\". you can find it via: right click project root -> properties -> build


There are a number of products like 'Advanced Installer' ( google it ), which have free versions and make it easy to create an installer which will make sure that things like .NET are installed, install your program, add shortcuts, etc. If you have a SQL Server database, that's more complex, your user needs to be able to attach or create your database, and configure their connection string inside your application.


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

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