2.6.1. IDE: Visual Studio

Since we used * Win64 generator, the target’s architecture is x64:

../../_images/01-x64.png

We need to tell Visual Studio that the target we want to run is foo. This can be done by right clicking on foo target in Solution Explorer and choosing Set as StartUp Project:

../../_images/02-startup-project.png

To run the executable go to Debug ‣ Start Without Debugging:

../../_images/03-start.png

Visual Studio will build the target first and then execute it:

../../_images/04-hello.png

Done!