64
votes

How do I switch between debug and release in Visual C# 2010 Express?

I have looked in the project properties, but it seems to be missing. What am I missing?

6

6 Answers

147
votes
  1. Enable the ToolsSettingsExpert Settings menu option

  2. Go to ToolsOptions
    In the dialog box, check Show All Settings option in the bottom left.

  3. In the above dialog, now choose Projects and SolutionsGeneral.
    Check the option Show advanced build configurations.

  4. Click OK.

You should be able to see the Release/Debug options in the toolbar now.

31
votes

Heh, that one baffled me too when I first installed Visual C# Express 2010. It turns out Microsoft has added a "Basic settings" mode to the Express editions that is selected by default.

You can change to "Expert settings" mode in the Tools menu, after that, the Debug/Release combo will be back.

Expert Settings in Visual Studio's Tools menu

Most IDE settings (window docking locations, font settings, etc.) seem to be kept in separate profiles between basic and expert mode, so you'll have to arrange your tool windows again and so on.

10
votes

I'm sure there's some obscure way that I don't remember... what I do know is that if you click "Build" it will build the Release version, but if you click "Start Debugging" it will build the Debug version. So if you just want to be able to get the output from both versions, that should sort it for you.

3
votes

You can follow these steps for visual studio 2010 professional edition.

  1. Go to Tools -> Customize .
  2. Select Commands Tab.
  3. Select ToolBar and then Build from combobox.
  4. Click on Add Command Button.
  5. Select Build from Categories and then select Solution Configurations from Commands.
1
votes

This is really strange. I've installed Windows 7 Pro x64, then I installed Visual C# 2010 Express and I couldn't find it at all. No matter how I built, it always produced Debug version. I could press F6 or press Build button and it still produced Debug version and I don't have any select box with Debug/Release to choose.

Finally I found it. I can change it by clicking my Soulution in Solution Explorer window and then in Properties window under Active Config.

0
votes

The last answer by prostynick was the final clue. I am using visual studio 2010 express. First you need to have the advanced setting checked Tools ---> Settings

Next is solution explorer double left click or single right click "My Project" to open the project.

You get a large screen with application, compile, debug ... menu on the side

Select Compile

Look at "Build Output path: It is probably pointing at bin\Debug folder.

Changing this will change where output from a build goes