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-1-create.md
+18-8Lines changed: 18 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Create a C++ console app project
3
3
description: "Create a Hello World console app in Visual C++"
4
4
ms.custom: "mvc"
5
-
ms.date: 12/12/2017
5
+
ms.date: 04/02/2019
6
6
ms.topic: "tutorial"
7
7
ms.devlang: "cpp"
8
8
ms.assetid: 45138d70-719d-42dc-90d7-1d0ca31a2f54
@@ -21,17 +21,23 @@ Visual Studio uses *projects* to organize the code for an app, and *solutions* t
21
21
22
22
::: moniker range=">=vs-2019"
23
23
24
-
1. In Visual Studio, open the **File** menu and choose **New > Project** to open the **Create a new Project** dialog.
24
+
1. In Visual Studio, open the **File** menu and choose **New** > **Project** to open the **Create a new Project** dialog. Select the **Console App** template, and then choose **Next**.
25
25
26
-

26
+

27
27
28
-
1. In the **New Project** dialog, select **Installed**, **Visual C++** if it isn't selected already, and then choose the **Empty Project** template. In the **Name** field, enter *HelloWorld*. Choose **OK** to create the project.
28
+
1. In the **Configure your new project** dialog, enter *HelloWorld* in the **Project name** edit box. Choose **Create** to create the project.
29
29
30
-

30
+

31
+
32
+
Visual Studio creates a new project, ready for you to add and edit your source code. By default, the Console App template fills in your source code with a "Hello World" app:
33
+
34
+

35
+
36
+
When the code looks like this in the editor, you're ready to go on to the next step and build your app.
31
37
32
38
::: moniker-end
33
39
34
-
::: moniker range="<vs-2019"
40
+
::: moniker range="<=vs-2017"
35
41
36
42
1. In Visual Studio, open the **File** menu and choose **New > Project** to open the **New Project** dialog.
37
43
@@ -41,8 +47,6 @@ Visual Studio uses *projects* to organize the code for an app, and *solutions* t
41
47
42
48

43
49
44
-
::: moniker-end
45
-
46
50
Visual Studio creates a new, empty project, ready for you to specialize for the kind of app you want to create and to add your source code files. You'll do that next.
47
51
48
52
[I ran into a problem.](#create-your-app-project-issues)
@@ -95,11 +99,15 @@ When the code looks like this in the editor, you're ready to go on to the next s
95
99
96
100
[I ran into a problem.](#add-a-source-code-file-issues)
97
101
102
+
::: moniker-end
103
+
98
104
## Next Steps
99
105
100
106
> [!div class="nextstepaction"]
101
107
> [Build and run a C++ project](vscpp-step-2-build.md)
102
108
109
+
::: moniker range="<=vs-2017"
110
+
103
111
## Troubleshooting guide
104
112
105
113
Come here for solutions to common issues when you create your first C++ project.
@@ -136,4 +144,6 @@ If red squiggles appear under anything in the source code editor, check that you
0 commit comments