views:

38

answers:

1

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

UPD:

Build tab Main menu

UPD 2:

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

Advanced

+1  A: 

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.

Crippledsmurf
I've added a screenshot of Build tab and Main menu with expert settings enabled. Where is that option?
zerkms
you need the tools menu, not project properties
KeeperOfTheSoul
Oh, after Tools > Settings > Expert Settings, don't you have to turn on "Show advanced build configurations" from Settings > Build?
KeeperOfTheSoul
Updated my instructions to include checking the "Show advanced build configurations" box in order to see the build config on the Build properties tab. Configuration Manager should still be visible without this, provided Expert settings are enabled as per my answer
Crippledsmurf
well, i've selected `Release` configuration and I still have .pdb in bin\release folder.
zerkms
I may have misspoken. You do still get symbols by default for a Release build. The difference is in the extent of the information they provide. In Debug you get full symbols which allows you to attach a debugger to the process when its running, in Release you get a reduced set of symbols which does not allow this. You can control symbol output using the Advanced Build Settings dialog. To completly eliminate symbols, set debug info to none
Crippledsmurf
Hmmmmmm, okay. Thank you.
zerkms