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

后端 未结 1 2022
攒了一身酷
攒了一身酷 2021-01-15 18:37

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

UPD:

\"Build

相关标签:
1条回答
  • 2021-01-15 19:14

    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

    Visual Studio 2008 Express options dialog showing the General page of the Projects and Solutions option group wit the "Show advanced build configurations" checkbox highlighted

    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

    Project properties Build tab showing the Configuration combo boxes.

    0 讨论(0)
提交回复
热议问题