简体   繁体   English

如何在 Microsoft Visual C# 2010 Express 中部署项目?

[英]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.

相关问题 可变着色帮助[Microsoft Visual C#2010 Express] - Variable Coloring Help [Microsoft Visual C# 2010 Express] Microsoft Visual Studio C#2010 Express:可以调试但不能构建 - Microsoft Visual Studio C# 2010 Express: Can debug but not build 使用Microsoft Visual C#2010 Express加载DLL - Loading DLLs with Microsoft Visual C# 2010 Express Visual C#Express 2010从Visual Studio导入项目 - Visual C# Express 2010 Importing a project from Visual Studio 在Microsoft Visual C#2010中打开项目时出现重复开发表达错误此安装不支持项目类型 - Duplicati Development when opening project in microsoft visual c# 2010 express get error The project type is not supported by this installation 如何在Microsoft Visual C#2010 Express中更改Windows窗体应用程序的启动图标 - How to change launching icon of windows form application in microsoft visual c# 2010 express 如何为Visual C#Express 2010安装Dev Express? - How to install Dev Express for Visual C# Express 2010? 如何在Visual Studio 2010(最终版)中部署C#.net项目? - How to Deploy a C#.net project in Visual studio 2010 (ultimate)? 如何在Visual C#2010 Express中进入类视图 - How to get to class view in Visual C# 2010 Express 如何将必需的DLL与Visual C#中的解决方案捆绑在一起(Express,2010年) - How to bundle a required DLL with a solution in Visual C# (Express, 2010)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM