Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29253 Discussions

Simple VS question: How to execute a release executable?

anthonyrichards
New Contributor III
705 Views
I have a solution with a DLL project and a test executable project.
I want to run the release version of the test executable.
In configuration manager I select 'release' for the executable.

If I try'start without debugging' VS objects that I have not specified a debug target. I don't want to debug.

There is no "Execute whatever.EXE" under the Build menu like in DevStudio/CVF. What can I use in Visual Studio?

I am reduced to double clicking the executable in Explorer!
0 Kudos
3 Replies
Les_Neilson
Valued Contributor II
705 Views

Under project properties, even for release,click on "debugging" and specify the command (the relative path to theexe you want to run)any command line arguments and the working directory.
Pressing F5 then runs the program - after telling you what you already know (built without debug) and asking if you want to continue. just clisk "Yes"

Les

0 Kudos
IanH
Honored Contributor III
705 Views
...and/or (depending on how you want to set things up) right click on the executable project (assuming it is in the same solution) and select "Set as StartUp Project". The icon title for that project in the solution explorer will then be bolded to indicate that the command nominated by its Debugging > Command and friends properties will be what is run when you press F5.
0 Kudos
Steven_L_Intel1
Employee
705 Views
What you have found is that Microsoft stopped putting the "Start without debugging" button in the toolbar by default. You can add it back.

In VS2010:

  1. Select Tools > Customize
  2. Click on the Commands tab
  3. Click on the radio button by Toolbar
  4. Using the Toolbar dropdown, select Standard
  5. Click Add Command...
  6. In Categories, select Debug
  7. Scroll down Commands and click on "Start Without Debugging" and click OK
  8. Now, click the "Move Down" button until you get the new button where you want it. For example, just below Start/Continue
  9. Click Close

Wow, they sure made it hard in VS2010....

In VS2008/2005

  1. Select Tools > Customize
  2. Click on the Commands tab
  3. Under Categories, select Debug
  4. Under Commands, scroll down until you see "Start Without Debugging"
  5. Drag the button to wherever you want it on the toolbar
  6. Click Close
0 Kudos
Reply