发布C#控制台应用程序 [英] Publishing C# console application

查看:241
本文介绍了发布C#控制台应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发使用VS2010一个C#控制台应用程序。现在我想将它做成一个setup.exe文件。是否有可能有这样的setup.exe作为一个独立的文件来运行我的程序?这意味着我怎样才能获得SETUP.EXE,当我在该文件上点击它将运行我的控制台,甚至没有打开VS,没有在工作站上需要我的项目文件夹的实现。
我已经试过无数的时间做自己,但未能直至现在。
几点建议吧。

I have developed a C# console application using VS2010. Now i would like to make it into a setup.exe. Is it possible to have this setup.exe as a standalone file to run my program? Meaning how can i achieve in obtaining setup.exe that when i click on that file it will run my console without even opening VS and without the need of my project folder on the workstation. I have tried numerous time doing myself but failed up till now. Some advice please.

谢谢,
10e5x

Thanks, 10e5x

推荐答案

您可以发布它。转到您的解决方案资源管理。右键点击它。发布应用程序。完成发布向导后,你可以在发布文件夹中的设置文件。

你可以简单的exe文件直接从Bin文件夹复制并粘贴不管你想要的。
希望这是有帮助的。

You can publish it. Go to your solution explorer. Right click on it. publish the application. After finishing the publishing wizard, you can get the set up file in publish folder. or you can simply copy the exe file directly from the Bin folder and paste it wherever you want. Hope this is helpful.

这篇关于发布C#控制台应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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