Building
Visual Studio will first build the solution before running the program. When it build the solution, all of files needed to run the program are copied into a special folder inside the project directory called bin (binary).
Try right-click at your project on right panel and choose 'Open Folder in File Explorer'. Go ton bin folder and notice there are 2 build configurations, debug and release.
The debug build configuration does thing like include information that the debugger and profilers need.
The release build configuration applies compile time optimization to make the code run faster.
Both directories contain the same file and have .exe program to run your project.