Compile in Release

I am in a huge rush right now.

Between VS2003 and VS2005 they moved where you choose whether you compile in Debug or Release mode. Where is it now

I have manually added the drop-down box to the tool bar, but it's grayed out. This is extremely frustrating and critical to testing DirectX stuff.



Answer this question

Compile in Release

  • Gagan Sharma

    What I always do to compile the debug or release versions (I'm using Visual C# 2005 Express Edition,) is to select Start with Debugging or Start without Debugging from the Debug menu. Start without Debugging compiles and starts the Release version, but perhaps there's a better way of doing this that I don't know about.
  • AIM48

    I never saw it doing this. I don't use VC# Express Edition though. Mine is Professional. But it shouldn't be different though... This link contains all what is there about build configurations:

    http://msdn2.microsoft.com/en-gb/library/kkz9kefa(VS.80).aspx

  • harvs

    That gave me the idear to look for a Run without Debugging button and add it to the toolbar. Guess what, it worked! Yay!

    Granted, it'd be nice if the dropdown worked as intended though.


  • Will Merydith

    Ok, now I'm really curious about this. Seems like there's something wrong with your VS2005 installation. Have you tried it on other people's machines
    Also, since you're able to go into Project Properties, once you're there, go the the Build tab, and see if the Configuration drop down is still grayed out...

  • Kimmo Laine

    Okay, that enabled the drop-down! Cheers!

    I know in Human Computer Interaction they tell everyone to hide extra settings... but the more I see such implementations, the more I think it's a load of BS. It seems to just get in the way and make things /harder/ to find.


  • Adii.sathye

    Inside the build menu there is only: Build, Rebuild, Clean, and Publish.

    As for Project Settings, I am guessing you mean Project Properties. And yes, I can access that through the Project menu or right clickong on the project in the Solution Explorer.

    (And to think that the VS2005 help had a three line article saying: "Select from the Solutions Configuration drop-down box on the standard toolbar" for how to compile under Release mode... funny it isn't there for me! I am using Visual Studio 2005 Enterprise Edition version 8.0.50727.42, if that helps.)


  • BhuttCrackSpackle

    Canuck1 wrote:
    What I always do to compile the debug or release versions (I'm using Visual C# 2005 Express Edition,) is to select Start with Debugging or Start without Debugging from the Debug menu. Start without Debugging compiles and starts the Release version, but perhaps there's a better way of doing this that I don't know about.

    This is not "running the Release version". This is either running your app under the debugger or not. In both cases your app is built with debug information and without compiler optimizations by default. To switch to the Release version, you have to switch the current configuration to Release then you can also start your app either under the debugger or outside of it.
    Now regarding the original poster's issue, you can upload the solution and project files to some area where we can download them and see what's wrong.



  • AlexBB

    Wessam, if that's the case then why does Start with Debugging compile to the bin\Debug project folder and the other option compiles to the bin\Release folder
  • Baller4lifeII

    I opened up the SimpleAnimation example and the drop-down is still grayed out.

    The weirdest part is that the dropdown wasn't even there like it used to be in VS2003. I had to manually add it.


  • thorlax402

    If you open any DirectX SDK sample project, can you choose the configuration or not

  • maxim2000

    The Solution Configurations and Solution Platforms listboxes seem to be permanently grayed in VC# Express, and the method I mentioned above seems to be the only way I can find to set the Build Configuration in the version I'm using. But maybe there's something wrong with my installation too.
  • hnkaraca

    A fellow MVP gave me this info:

    > IAC, go to Tools/Options/Show All Settings
    > Then Projects and Solutions/Show advanced build configurations.
    >
    > The docs say:
    >
    > Show advanced build configurations
    > When selected, the build configuration options appear on the Project
    > Property Pages dialog box and the Solution Property Pages dialog box. When
    > cleared, the build configuration options do not appear on the Project
    > Property Pages dialog box and the Solution Property Pages dialog box for
    > Visual Basic and Visual C# projects that contain one configuration or the
    > two configurations debug and release. If a project has a user-defined
    > configuration, the build configuration options are shown.

  • Ludo-R

    Glad I could help :)
  • ReneeC

    Can you access the Build menu, Configuration Manager command (and Project Settings also for what it matters).

  • Compile in Release