How to make a release build in the VS Express 2010?

僤鯓⒐⒋嵵緔 提交于 2019-12-01 11:51:32

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

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. Not producing debug symbols for the generated assemblies (.pdb files)
  2. Undefines the DEBUG compilation symbol meaning that any code conditionally included with the symbol will not be in the resulting assembly
  3. The compiler optimizer is enabled which could mean that the IL generated is slightly different than what would normally be generated depending upon what optimizations the optimizer can make

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!