You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build/vscpp-step-2-build.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Build and run a C++ console app project
3
3
description: "Build and run a Hello World console app in Visual C++"
4
4
ms.custom: "mvc"
5
-
ms.date: 07/05/2023
5
+
ms.date: 06/28/2024
6
6
ms.topic: "tutorial"
7
7
ms.devlang: "cpp"
8
8
---
@@ -24,11 +24,11 @@ If Visual Studio looks like this, you're ready to build and run your app:
24
24
25
25
## Build and run your code in Visual Studio
26
26
27
-
1. To build your project, choose **Build Solution**from the **Build** menu. The **Output** window shows the results of the build process.
27
+
1. To build your project, **Build**> **Build Solution**. The **Output** window shows the results of the build process.
28
28
29
29
:::image type="complex" source="media/vscpp-build-solution.gif" alt-text="Animated screenshot showing the sequence of actions taken to build a project in Visual Studio.":::
30
30
First, Build is selected from the main menu. Then Build Solution is selected. The Output window shows the build output messages, including that the build is successful.
31
-
:::image-end:::
31
+
:::image-end:::
32
32
33
33
1. To run the code, on the menu bar, choose **Debug**, **Start without debugging**.
34
34
@@ -50,12 +50,12 @@ Normally, you run console apps at the command prompt, not in Visual Studio. Once
50
50
51
51
::: moniker range="<msvc-170"
52
52
53
-
2. In the **File Explorer** window, open the `Debug` folder. This folder contains your app, `HelloWorld.exe`, and debugging files. Hold down the **Shift** key and right-click on `HelloWorld.exe` to open the context menu. Choose **Copy as path** to copy the path to your app to the clipboard.
53
+
2. In the **File Explorer** window, open the `Debug` folder. This folder contains your app, `HelloWorld.exe`, and debugging files. Hold down the **Shift** key and right-click on `HelloWorld.exe` to open the context menu. Choose **Copy as path** to copy the path to your app to the clipboard. If you see `HelloWorld.exe.recipe`, it's because you did the **Open Folder in File Explorer** step on the HelloWorld *project* instead of the HelloWorld *solution*. Navigate up a level in File Explorer to get to the solution folder. This folder also contains a `Debug` folder, where `HelloWorld.exe` is.
54
54
55
55
::: moniker-end
56
56
::: moniker range=">=msvc-170"
57
57
58
-
2. In the **File Explorer** window, open the `x64` folder and then the `Debug` folder. This folder contains your app, `HelloWorld.exe`, and debugging files. Hold down the **Shift** key and right-click on `HelloWorld.exe` to open the context menu. Choose **Copy as path** to copy the path to your app to the clipboard.
58
+
2. In the **File Explorer** window, open the `x64` folder and then the `Debug` folder. This folder contains your app, `HelloWorld.exe`, and debugging files. Hold down the **Shift** key and right-click on `HelloWorld.exe` to open the context menu. Choose **Copy as path** to copy the path to your app to the clipboard. If you see `HelloWorld.exe.recipe`, it's because you did the **Open Folder in File Explorer** step on the HelloWorld *project* instead of the HelloWorld *solution*. Navigate up a level in File Explorer to get to the solution folder. This folder also contains a `x64\Debug\` folder, where `HelloWorld.exe` is.
0 commit comments