Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create an executable in Visual Studio 2013 w/ C++?

I can't find the exe file for my Hello World program that succeeded to work, and the program did not open as soon as it said it worked. I tried going to my documents and checking my project's folder. It was completely empty. Thanks for any and all help.

like image 623
Viridian Tourist Avatar asked Dec 28 '13 23:12

Viridian Tourist


People also ask

Where can I Find my Visual Studio project's executable files?

All executable files from Visual Studio should be located in the debug folder of your project, e.g: Then the project which was called 'hello world' would be in the directory: And your exe would be located in: Note the exe being named the same as the project.

How to enable setup project in Visual Studio 2013?

Actually with Visual Studio 2013, the setup project is based on your requirement. When you press OK, it will open InstallShield Limited Edition for Visual Studio page. Here you will find the link as Go to the download web site from where you can enable setup project with your Visual Studio.

How to install application shortcuts in Visual Studio 2017?

From the Visual Studio Output Selector window, select your primary output. You can also include any other files which is required to complete the installation like some configuration files, xml files, etc. It will add your project as a primary output. Click on next icon that is Application Shortcuts.

What can I configure when I build applications with Visual Studio?

By completing this walkthrough, you'll become more familiar with several options that you can configure when you build applications with Visual Studio. You'll create a custom build configuration, hide certain warning messages, and increase build output information for a sample application.


2 Answers

All executable files from Visual Studio should be located in the debug folder of your project, e.g:

Visual Studio Directory: c:\users\me\documents\visual studio

Then the project which was called 'hello world' would be in the directory:

c:\users\me\documents\visual studio\hello world

And your exe would be located in:

c:\users\me\documents\visual studio\hello world\Debug\hello world.exe

Note the exe being named the same as the project.

Otherwise, you could publish it to a specified folder of your choice which comes with an installation, which would be good if you wanted to distribute it quickly

EDIT:

Everytime you build your project in VS, the exe is updated with the new one according to the code (as long as it builds without errors). When you publish it, you can choose the location, aswell as other factors, and the setup exe will be in that location, aswell as some manifest files and other files about the project.

like image 169
Joe Avatar answered Oct 03 '22 11:10

Joe


  1. Click BUILD > Configuration Manager...
  2. Under Project contexts > Configuration, select "Release"
  3. BUILD > Build Solution or Rebuild Solution
like image 45
user1146300 Avatar answered Oct 03 '22 12:10

user1146300