如何发布一个Windows窗体应用程序? [英] How do I publish a Windows Forms Application?

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

问题描述

于是我做了一个C#程序,它的伟大和所有(它的一个Windows窗体应用程序)。与它的问题,是我不知道如何使用它调试模式的形式之外。如何发布呢?我的目标的目标是打造一个两个文件夹,把一个快捷方式在应用程序之一,其中将包含应用程序和所有外部程序(某些按钮链接到批处理文件)其他文件夹一起。然后,我希望能够把它放在一个RAR压缩文件,并上传到网上供他人下载它。

So I made a C# program, and its great and all (its a Windows Form Application). The issue with it, is I don't know how to use it outside of the debug mode form. How do I publish it? My target goal is to create a two folders, put a shortcut to the application in one, along with the other folder which will contain the application and all outside programs (some of the buttons link to batch files). Then I'd want to be able to put it in a RAR compressed file, and upload it online for others to download it.

如何发布它,以便发生?我怎么把它拿出来的调试模式?

How do I publish it so that happens? How do I take it out of debug mode?

推荐答案

进入您的项目文件夹,然后定位为/ bin /释放。如果有一个与你的项目中就有其标题为EXE文件,复制它的地方(与您可能已经链接任何DLL一起),并有你的程序。如果它不存在,首先尝试建立 - >编译解决方案在Visual Studio中。如果它仍然不存在,而是定位为/ bin /调试和做同样的事情。然后,所有的批处理文件复制到另一个文件夹,把它们放到同一个文件夹,和RAR它。

Go into your project folder, then navigate to /bin/Release. If there's an EXE file with the title of your project in there, copy it somewhere (along with any DLLs that you may have linked) and there's your program. If it's not there, first try Build -> Compile Solution in Visual Studio. If it's still not there, navigate instead to /bin/Debug and do the same thing. Then, copy all your batch files into another folder, put them into the same folder, and RAR it.

P.S。尽量不要使用RAR,很少有人能提取它们。使用,如果在所有可能的ZIP或SEA(自解压压缩包)。

P.S. Try not to use RAR, few people can extract them. Use ZIP or SEA (self-extracting archive) if at all possible.

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

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