[英]How to deploy a project in Microsoft Visual C# 2010 Express?
I tried to look at several tutorials online and nothing helped..我试图在网上看几个教程,但没有任何帮助..
I have a chess game that I want to deploy.我有一个想要部署的国际象棋游戏。 I want it to seem as a portable chess game.. you click the exe and the chess game runs..我希望它看起来像一个便携式国际象棋游戏..您单击 exe 并运行国际象棋游戏..
How can you achieve that?你怎么能做到这一点?
If you have a paid for version of Visual Studio you can use a Visual Studio Installer project to create an MSI.如果您有 Visual Studio 的付费版本,则可以使用 Visual Studio 安装程序项目来创建 MSI。 This is not the most flexible method though and I believe it will not be supported in future releases.虽然这不是最灵活的方法,但我相信在未来的版本中不会支持它。
I'd recommend learning WIX .我建议学习WIX 。 It has a steep learning curve but it is very powerful and fully maintained.它有一个陡峭的学习曲线,但它非常强大并且得到了充分的维护。 If you install Votive which comes with it then it makes life a bit easier by adding auto-complete etc. when you edit the files in Visual Studio.如果你安装了它附带的 Votive,那么当你在 Visual Studio 中编辑文件时,它会通过添加自动完成等来让生活变得更轻松。
If you right click on the project in the solution viewer, I get a "publish", select a directory, if you select install from CDrom (eg a file based install), it creates a setup.exe.如果您在解决方案查看器中右键单击该项目,我会得到一个“发布”,select 一个目录,如果您从 CDrom 安装 select(例如基于文件的安装),它会创建一个 setup.exe。
Have you tried this?你试过这个吗?
Long as they have .net installed, I believe this should be sufficient.只要他们安装了 .net,我相信这应该足够了。 Its not very elegant and you dont get to configure the setup app.它不是很优雅,您无需配置设置应用程序。
You just need to deploy the copy of the binaries to where ever you need the application.您只需要将二进制文件的副本部署到您需要应用程序的任何地方。
When you run your application an exe file is created which you can then use outside of visual studio.当您运行应用程序时,会创建一个 exe 文件,然后您可以在 Visual Studio 之外使用该文件。 Look in the properties of your project under the build tab there is an output path, that is where your exe is.在构建选项卡下查看项目的属性,有一个 output 路径,这就是你的 exe 所在的位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.