Solved

VB 2008 Express - how do i switch from debug to release mode and vice-versa?

Posted on 2008-10-20
24
1,235 Views
Last Modified: 2013-12-17
VB 2008 Express - how do i switch from debug to release mode and vice-versa?
0
Comment
Question by:hamlin11
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 6
  • 5
  • +1
24 Comments
 
LVL 7

Expert Comment

by:talker2004
ID: 22762398
On the standard toolbar there should be a dropdown to choose debug or release configuration
0
 
LVL 7

Expert Comment

by:talker2004
ID: 22762472
here is how you can use the command line to build the release version of your app

c:\windows\microsoft.net\framework\v3.5\msbuild mysolution.sln /t:Rebuild /p:Configuration=
0
 

Author Comment

by:hamlin11
ID: 22762494
talker, there is no drop down on my toolbar
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:hamlin11
ID: 22762513
Here's my toolbar (attached)

temp.png
0
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 22763241
Click on Tools --> Options.
In the "Projects and Solutions" section, Check the "Show advanced build configurations" Entry.
Now in the Main Menu you can go to Build --> Configuration Manager.
Change the "Active Solution Configuration" DropDown from "Debug" to "Release" (or vice versa).
0
 
LVL 7

Expert Comment

by:talker2004
ID: 22763381
Thanks, my machine at work has the dropdown on the toolbar but I was not able to get it to show up on the toolbar at home.  

We always use msbuild to release our apps anyway.
0
 
LVL 86

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 500 total points
ID: 22763404
I'm using the Express version like the author and I don't see an option to put it into the ToolBar.  I wonder if that is only available in the paid versions?...  =)

It might be buried somewhere in there though...
0
 

Expert Comment

by:Noty661
ID: 22763531
Idle_Mind -

Make sure you have the Build toolbar showing.. Right click the toolbar and choose customize.

On the commands tab, select Build, scroll to the bottom, and drag "Solution configurations" to the build toolbar.
0
 
LVL 7

Expert Comment

by:talker2004
ID: 22763560
Noty661, i am not finding that solution configurations

I know it's there because i have it on my toolbar at work

0
 
LVL 7

Expert Comment

by:talker2004
ID: 22763561
idle_mind, thanks i was wondering why my configuration manager menu was missing.
0
 

Expert Comment

by:Noty661
ID: 22763578
I'm using VS2008 Express, with "Show advanced build configurations" checked, and I definitely have the "Solution Configurations" dropdown. I had to add it manually through the customize toolbar dialog with the steps above.

I don't know why it wouldn't be there for you. Sorry buddy.  :>

-N

0
 
LVL 7

Expert Comment

by:talker2004
ID: 22763592
Finally found it, did not follow the instructions.

It was under the build menu, it works.
0
 

Expert Comment

by:Noty661
ID: 22763610
Good to know! Have a nice evening.
0
 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 22763831
Thanx Noty661!

I right clicked my ToolBar and selected Customize.
Then on the "Commands" Tab I selected Build on the Left side for the Category.
Next I dragged the "Solution Configurations" Command up to my ToolBar and hit Close.

On a side note...If I Uncheck the "Show advanced build configurations" entry I mentioned earlier then that ToolBar button goes gray.  =)
Debug---Release-Modes.jpg
0
 
LVL 7

Expert Comment

by:talker2004
ID: 22763868
It's funny how M$ starts to bury it's options, vs2003 put the solution configuration on the toolbar by default and they told us to use it to switch between release / debug.

It's like they have made efforts to bury it with each revision of visual studio.

0
 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 22763884
Yeah...I also remember my default ToolBar having it in VB.Net 2003 Standard.

0
 
LVL 7

Expert Comment

by:talker2004
ID: 22763904
right, moving to 2005 i remember struggling to get it back.

As far as 2008 i am not sure how i managed to get it on my work computer, I am glad i followed this thread because i have three other machines where it was missing.


0
 

Author Closing Comment

by:hamlin11
ID: 31508032
Thanks for the solution.
0
 

Author Comment

by:hamlin11
ID: 22789799
Microsoft dropped the ball on this one - as indicated by the interest in this topic.

Thanks for the fix Idle_Mind... much appreciated
0
 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 22789806
Thanx for the points...I don't feel I should have gotten ALL of them though!   =\

0
 

Author Comment

by:hamlin11
ID: 22789858
I disagree - you gave perfect instructions on how to fix it and most of the rest of the discussion was about your fix. I do apologize if I missed somebody though - not my intent
0
 
LVL 7

Expert Comment

by:talker2004
ID: 22790083
Idle_Mind, the other solution was based off of the fact that your option was selected.

Noty661 probably deserved a couple of points.

Either way I am glad that i was able to learn the proper way to enable the option.

0
 

Author Comment

by:hamlin11
ID: 22790145
My apologies to Noty then - thanks Noty
0
 

Expert Comment

by:Noty661
ID: 22791951
No problem at all! Idle_Mind answered the question - How to enable the option and use it. I only said how to show that option in your toolbar. :)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question