如何编译完成的C#项目,然后在Visual Studio外部运行? [英] How to compile the finished C# project and then run outside Visual Studio?

查看:384
本文介绍了如何编译完成的C#项目,然后在Visual Studio外部运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚完成一个简单的代码程序的设计。我称它为猜谜游戏。该程序到目前为止运行良好,我想在不打开Microsoft Visual Studio的情况下将其打开。

I just finished designing a simple code program. I called it a "Guessing Game". The program is so far working fine and I would like to open it without opening my Microsoft Visual Studio.

我该怎么做?

推荐答案

最简单的方法是:


  • 找到Visual Studio窗口顶部显示 Debug
  • 的下拉框
  • 选择发布

  • 点击 F6 进行构建

  • 切换回 Debug ,然后关闭Visual Studio

  • 打开Windows资源管理器并导航到项目的文件夹(我的Documents\Visual Studio 200x\Projects_my_project\

  • 现在转到 bin\Release\ 并将可执行文件从那里复制到您想要存储的任何地方

  • 根据需要设置快捷方式并享受新游戏的乐趣! :)

  • Find the drop-down box at the top of Visual Studio's window that says Debug
  • Select Release
  • Hit F6 to build it
  • Switch back to Debug and then close Visual Studio
  • Open Windows Explorer and navigate to your project's folder (My Documents\Visual Studio 200x\Projects\my_project\)
  • Now go to bin\Release\ and copy the executable from there to wherever you want to store it
  • Make shortcuts as appropriate and enjoy your new game! :)

这篇关于如何编译完成的C#项目,然后在Visual Studio外部运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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