如何在 VS Express 2010 中发布版本? [英] How to make a release build in the VS Express 2010?

查看:40
本文介绍了如何在 VS Express 2010 中发布版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

或者我应该只复制 bin\Release\ 中的所有文件,不包括 .pdb?

Or should I just copy all the files from bin\Release\ excluding .pdb?

UPD:

UPD 2:

这就是我在构建"选项卡的高级"设置中找到的内容.这是我要找的吗?

That is what I've found in the Advanced settings at the Build tab. Is it what I'm looking for?

推荐答案

要在 VS 2010 express 中进行发布构建,您需要将项目的构建配置从 Debug 更改为 Release.

To make a release build in VS 2010 express you need to change the build configuration for the project from Debug to Release.

为此,您需要访问在 VS 2010 Express Editions 中默认隐藏的配置管理器,以启用它 单击工具 > 设置 > 专家设置

To do this you need to access the configuration manager which is hidden by default in VS 2010 Express Editions, to enable it Click Tools > Settings > Expert Settings

配置管理器现在应该作为一个选项出现在构建菜单中,您应该能够将活动构建配置从调试更改为发布

Configuration Manager should now appear as an option in the Build menu and you should be able to change the active build configuration from Debug to Release

更改构建配置可能会产生不同的后果,包括:

Changing build config may have a verity of different consequences including:

  1. 不为生成的程序集(.pdb 文件)生成调试符号
  2. 取消定义 DEBUG 编译符号意味着任何有条件地包含在该符号中的代码都不会出现在生成的程序集中
  3. 启用了编译器优化器,这可能意味着生成的 IL 与通常生成的 IL 略有不同,具体取决于优化器可以进行哪些优化

可以在项目属性页面的构建选项卡上查看和编辑每个构建配置中使用的确切设置.

The exact settings used in each build configuration can be viewed and edited on the Build tab of the project Properties page.

要在构建"选项卡上查看构建配置选择组合框,您需要启用项目和解决方案"选项组的常规"页面上的显示高级构建配置"复选框,该复选框在选中显示所有选项"时可见(如如下图

To see the build configuration selection combo boxes on the Build tab you need to enable the "Show advanced build configurations" check box on the General page of the Projects and Solutions option group which is visible when Show All Options is checked (as pictured below

选中此选项后,项目的构建选项卡应包含一个配置部分,您可以使用该部分来控制选项卡显示的构建配置

With this option checked the Build tab of the project should include a Configuration section which you can use to control which build configuration the tab displays

这篇关于如何在 VS Express 2010 中发布版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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