Previous Topic Next topic Print topic


Build and Run the Project

There are two default build configurations for each project type: Debug and Release. These configurations define how to build the project for the different situations.

To build the project and run it:

  1. Check the build configuration in use, by clicking Build > Configuration Manager.
  2. In Active solution configuration, choose Debug and click Close.

    Notice in the Standard toolbar at the top of the IDE, that Debug shows as the active configuration.

  3. Build the project, by clicking Build > Build Solution.

    The Build option builds only those files that have changed since they were last built, whereas the Rebuild option builds all the files in the project, regardless of whether they have changed since they were last built.

  4. Check that the project compiled successfully by looking in the Output view. To display this view, click View > Output.
  5. Run the application, by clicking Debug > Start Without Debugging or .

    A console window opens, showing this character-based application running.

  6. Go to the console by clicking it. Then type 5 and press Enter.

    "5" is the code that tells this application to finish and the console closes.

Previous Topic Next topic Print topic