Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. [VS10] Debug and Release build problem

[VS10] Debug and Release build problem

Scheduled Pinned Locked Moved Visual Basic
helpcsharpannouncementvisual-studio
9 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    The Mighty Atom
    wrote on last edited by
    #1

    Im having a strange issue with Visual Studio 2010. I've been programming in VB.Net since Visual Basic Express 2003. I've also used 2005, 2008 and now 2010, both the express edition and the proffesional edition. My experience is that with all these versions, if you hit F5 or click the Run button, you get a debug build of your application which is written to the bin\debug folder. To get a Release version, i just go to the Build menu and hit Build solution\solutionname. This creates a Release build of your application which is written to the bin\release folder So far so good. But i've recently reinstalled Visual Studio 2010 and now the above is no longer the case. When i hit F5 or the Run button, i get a debug build, just as i expected. But when i click the Build solution\solutionname menuitem in the Build menu, i STILL get a debug build and no release build. :confused: Why? I just want a debug build when i hit F5\run and a release build when click the Build solution\solutionname menuitem. This is what i got used to over the years. Who can help me fix this?

    Virtual Space Shuttle Astronaut

    L T 2 Replies Last reply
    0
    • T The Mighty Atom

      Im having a strange issue with Visual Studio 2010. I've been programming in VB.Net since Visual Basic Express 2003. I've also used 2005, 2008 and now 2010, both the express edition and the proffesional edition. My experience is that with all these versions, if you hit F5 or click the Run button, you get a debug build of your application which is written to the bin\debug folder. To get a Release version, i just go to the Build menu and hit Build solution\solutionname. This creates a Release build of your application which is written to the bin\release folder So far so good. But i've recently reinstalled Visual Studio 2010 and now the above is no longer the case. When i hit F5 or the Run button, i get a debug build, just as i expected. But when i click the Build solution\solutionname menuitem in the Build menu, i STILL get a debug build and no release build. :confused: Why? I just want a debug build when i hit F5\run and a release build when click the Build solution\solutionname menuitem. This is what i got used to over the years. Who can help me fix this?

      Virtual Space Shuttle Astronaut

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Check which project configuration type is selected in the drop down on your toolbar.

      The best things in life are not things.

      T 1 Reply Last reply
      0
      • L Lost User

        Check which project configuration type is selected in the drop down on your toolbar.

        The best things in life are not things.

        T Offline
        T Offline
        The Mighty Atom
        wrote on last edited by
        #3

        Hmm, i've never noticed that before. It was never there but now it is. It's set to Debug.

        Virtual Space Shuttle Astronaut

        L 1 Reply Last reply
        0
        • T The Mighty Atom

          Hmm, i've never noticed that before. It was never there but now it is. It's set to Debug.

          Virtual Space Shuttle Astronaut

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I don't use VB but that has been in every version of Visual Studio (from VC 4), Visual C++ Express (from 2005), and Visual C# Express (from 2005) that I have used.

          The best things in life are not things.

          T 1 Reply Last reply
          0
          • L Lost User

            I don't use VB but that has been in every version of Visual Studio (from VC 4), Visual C++ Express (from 2005), and Visual C# Express (from 2005) that I have used.

            The best things in life are not things.

            T Offline
            T Offline
            The Mighty Atom
            wrote on last edited by
            #5

            Well, i know i never had to deal with the configuration manager before the format, i could just hit F5\run to produce a debug build, and use the Build ... menuitem to produce a release build. There was no need to switch between the debug and release configurations. This is what i got used to over the years and this is the behavior i prefer. I don't feel like switching between Debug and Release modes every time, i never had to do that before, so why do i have to do it now? It was never an issue. I'd like to add that this this[^] no longer applies to me, and i quote: When you set up Visual Studio, you are asked to choose a set of Development Settings for your primary programming language. If you choose the Visual Basic Development Settings, the tool for choosing the Debug or Release configuration does not appear in the toolbar. Instead, Visual Studio automatically chooses the Debug configuration when you choose Start from the Debug menu and the Release configurations when you use the Build menu. To change the Development Settings, see How to: Restore Hidden Debugger Commands. After you change the Development Settings, make sure that Show advanced build configurations is selected in the Options dialog box, Project and Solutions category, General page. In particular the bold part does no longer seem to be true but it is the behaviour i want. Before the format, it does exactly what it says, but after the format this no longer seems to be true as i still see the Debug configuration in my standard toolbar and click the build ... menuitem does not produce the release build. I just don't get it.

            Virtual Space Shuttle Astronaut

            L 1 Reply Last reply
            0
            • T The Mighty Atom

              Well, i know i never had to deal with the configuration manager before the format, i could just hit F5\run to produce a debug build, and use the Build ... menuitem to produce a release build. There was no need to switch between the debug and release configurations. This is what i got used to over the years and this is the behavior i prefer. I don't feel like switching between Debug and Release modes every time, i never had to do that before, so why do i have to do it now? It was never an issue. I'd like to add that this this[^] no longer applies to me, and i quote: When you set up Visual Studio, you are asked to choose a set of Development Settings for your primary programming language. If you choose the Visual Basic Development Settings, the tool for choosing the Debug or Release configuration does not appear in the toolbar. Instead, Visual Studio automatically chooses the Debug configuration when you choose Start from the Debug menu and the Release configurations when you use the Build menu. To change the Development Settings, see How to: Restore Hidden Debugger Commands. After you change the Development Settings, make sure that Show advanced build configurations is selected in the Options dialog box, Project and Solutions category, General page. In particular the bold part does no longer seem to be true but it is the behaviour i want. Before the format, it does exactly what it says, but after the format this no longer seems to be true as i still see the Debug configuration in my standard toolbar and click the build ... menuitem does not produce the release build. I just don't get it.

              Virtual Space Shuttle Astronaut

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              The Mighty Atom wrote:

              so why do i have to do it now?

              No idea, maybe Microsoft know. As I said, I have not used VB so I never knew this issue existed.

              The best things in life are not things.

              T 1 Reply Last reply
              0
              • L Lost User

                The Mighty Atom wrote:

                so why do i have to do it now?

                No idea, maybe Microsoft know. As I said, I have not used VB so I never knew this issue existed.

                The best things in life are not things.

                T Offline
                T Offline
                The Mighty Atom
                wrote on last edited by
                #7

                That's ok. Im hoping to get the original behaviour back, the one im used to over the years. Hopefully someone has the solution to this, because it may not look like that big of an issue, but it is for me, it annoys the heck out of me like there's no tomorrow, i can't help it. :wtf:

                Virtual Space Shuttle Astronaut

                1 Reply Last reply
                0
                • T The Mighty Atom

                  Im having a strange issue with Visual Studio 2010. I've been programming in VB.Net since Visual Basic Express 2003. I've also used 2005, 2008 and now 2010, both the express edition and the proffesional edition. My experience is that with all these versions, if you hit F5 or click the Run button, you get a debug build of your application which is written to the bin\debug folder. To get a Release version, i just go to the Build menu and hit Build solution\solutionname. This creates a Release build of your application which is written to the bin\release folder So far so good. But i've recently reinstalled Visual Studio 2010 and now the above is no longer the case. When i hit F5 or the Run button, i get a debug build, just as i expected. But when i click the Build solution\solutionname menuitem in the Build menu, i STILL get a debug build and no release build. :confused: Why? I just want a debug build when i hit F5\run and a release build when click the Build solution\solutionname menuitem. This is what i got used to over the years. Who can help me fix this?

                  Virtual Space Shuttle Astronaut

                  T Offline
                  T Offline
                  TheComputerMan
                  wrote on last edited by
                  #8

                  That is totally weird! It has always done whatever is set on the menu for me whether to use build on the menu, or run or right click and build on the solution in solution explorer. Would this be an Express thing perhaps? I have never used the Express versions and have always used the configuration manager to set things up.

                  T 1 Reply Last reply
                  0
                  • T TheComputerMan

                    That is totally weird! It has always done whatever is set on the menu for me whether to use build on the menu, or run or right click and build on the solution in solution explorer. Would this be an Express thing perhaps? I have never used the Express versions and have always used the configuration manager to set things up.

                    T Offline
                    T Offline
                    The Mighty Atom
                    wrote on last edited by
                    #9

                    I have the Express edition installed on my laptop and it works just fine. No need to mess with confuguration manager or anything. For a debug build, i hit F5, and for a release build, i use the Build command in the build menu. This was the case with the proffesional edition on my main computer BEFORE i formatted. But after the format, it no longer works like that, and i hate it. What is going on?

                    Virtual Space Shuttle Astronaut

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups