Skip to content

Commit 0f1b74c

Browse files
author
mikeblome
committed
updates to ide get started walkthroughs
1 parent b759870 commit 0f1b74c

6 files changed

Lines changed: 74 additions & 17 deletions

docs/ide/using-the-visual-studio-ide-for-cpp-desktop-development.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Using the Visual Studio IDE for C++ Desktop Development"
3-
ms.date: "03/14/2019"
3+
ms.date: "04/25/2019"
44
helpviewer_keywords: ["IDE [C++]", "Visual Studio IDE [C++]"]
55
ms.assetid: d985c230-8e81-49d6-92be-2db9cac8d023
66
---
@@ -16,15 +16,19 @@ These walkthroughs assume that you have installed Visual Studio and the Visual C
1616

1717
If you haven't installed Visual Studio yet, now is the time.
1818

19+
**Visual Studio 2019 Installation**
20+
21+
To get Visual Studio 2019, you can download it from [Visual Studio Downloads](https://www.visualstudio.com/downloads/). Be sure to include the Visual C++ development tools when you install Visual Studio, because they are not installed by default. For more information about how to install Visual Studio, see [Install Visual Studio](/visualstudio/install/install-visual-studio).
22+
1923
**Visual Studio 2017 Installation**
2024

21-
To get Visual Studio 2017, you can download it from [Visual Studio Downloads](https://www.visualstudio.com/downloads/download-visual-studio-vs.aspx). Be sure to include the Visual C++ development tools when you install Visual Studio, because they are not installed by default. For more information about how to install Visual Studio, see [Install Visual Studio](/visualstudio/install/install-visual-studio).
25+
To get Visual Studio 2017, you can download it from [Download older versions of Visual Studio](https://www.visualstudio.com/vs/older-downloads/). Be sure to include the Visual C++ development tools when you install Visual Studio, because they are not installed by default. For more information about how to install Visual Studio, see [Install Visual Studio](/visualstudio/install/install-visual-studio) and set the version selector on the page to **Visual Studio 2017**.
2226

2327
**Visual Studio 2015 Installation**
2428

2529
To install Visual Studio 2015, go to [Download older versions of Visual Studio](https://www.visualstudio.com/vs/older-downloads/). Run the setup program and choose **Custom installation** and then choose the C++ component.
2630

27-
In general, we highly recommend that you use Visual Studio 2017 even if you need to compile your code using the Visual Studio 2015 compiler. For more information, see [Use native multi-targeting in Visual Studio to build old projects](../porting/use-native-multi-targeting.md).
31+
In general, we highly recommend that you use Visual Studio 2019 even if you need to compile your code using the Visual Studio 2017 or Visual Studio 2015 compiler. For more information, see [Use native multi-targeting in Visual Studio to build old projects](../porting/use-native-multi-targeting.md).
2832

2933
Once your Visual Studio installation is complete, you are ready to continue.
3034

docs/ide/walkthrough-building-a-project-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Walkthrough: Building a Project (C++)"
3-
ms.date: "09/14/2018"
3+
ms.date: "04/25/2019"
44
helpviewer_keywords: ["building projects [C++]", "projects [C++], building", "project building [C++]"]
55
ms.assetid: d459bc03-88ef-48d0-9f9a-82d17f0b6a4d
66
---

docs/ide/walkthrough-debugging-a-project-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Walkthrough: Debugging a Project (C++)"
3-
ms.date: "09/14/2018"
3+
ms.date: "04/25/2019"
44
helpviewer_keywords: ["projects [C++], debugging", "project debugging [C++]", "debugging projects"]
55
ms.assetid: a5cade77-ba51-4b03-a7a0-6897e3cd6a59
66
---

docs/ide/walkthrough-deploying-your-program-cpp.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Walkthrough: Deploying Your Program (C++)"
3-
ms.date: "09/14/2018"
3+
ms.date: "04/25/2019"
44
helpviewer_keywords: ["deploying applications [C++], walkthroughs", "setup projects [C++]", "program deployments [C++]", "projects [C++], setup", "projects [C++], deploying programs", "application deployment [C++], walkthroughs"]
55
ms.assetid: 79e6cc4e-dced-419d-aaf7-d62d1367603f
66
---
@@ -20,7 +20,19 @@ The walkthrough shows how to use Windows Installer to deploy your application. Y
2020

2121
- If you haven’t already done so, download the Microsoft Visual Studio Installer Projects extension, as described in the further steps later. The extension is free for Visual Studio developers and adds the functionality of the setup and deployment project templates to Visual Studio.
2222

23-
### To install the Visual Studio setup and deployment project template
23+
## To install the Visual Studio setup and deployment project template
24+
25+
The steps in this section vary depending on which version of Visual Studio you have installed. Make sure the version selector in the upper left of this page is set correctly.
26+
27+
::: moniker range="vs-2019"
28+
29+
### To install the setup and deployment project template for Visual Studio 2019
30+
31+
::: moniker-end
32+
33+
::: moniker range="<=vs-2017"
34+
35+
### To install the setup and deployment project template for Visual Studio 2017 and earlier
2436

2537
1. When you're connected to the Internet, in Visual Studio, choose **Tools** > **Extensions and Updates**.
2638

docs/ide/walkthrough-testing-a-project-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Walkthrough: Testing a Project (C++)"
3-
ms.date: "09/14/2018"
3+
ms.date: "04/25/2019"
44
helpviewer_keywords: ["project testing [C++]", "testing projects", "projects [C++], testing"]
55
ms.assetid: 88cdd377-c5c8-4201-889d-32f5653ebead
66
---

docs/ide/walkthrough-working-with-projects-and-solutions-cpp.md

Lines changed: 50 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Walkthrough: Working with Projects and Solutions (C++)"
3-
ms.date: "09/14/2018"
3+
ms.date: "04/25/2019"
44
helpviewer_keywords: ["solutions [C++]", "projects [C++], about projects", "projects [C++]", "solutions [C++], about solutions"]
55
ms.assetid: 93a3f290-e294-46e3-876e-e3084d9ae833
66
---
@@ -12,24 +12,63 @@ In Visual Studio, work is organized in projects and solutions. A solution can ha
1212

1313
## Before you start
1414

15-
To complete this walkthrough, you need Visual Studio 2017 version 15.3 or later. If you need a copy, here's a short guide: [Install C++ support in Visual Studio](../build/vscpp-step-0-installation.md). If you haven't done it yet, follow the next steps after installation through the "Hello, World" tutorial to make sure Visual C++ is installed correctly and it all works.
15+
To complete this walkthrough, you need Visual Studio 2017 version 15.3 or later. If you need a copy, here's a short guide: [Install C++ support in Visual Studio](../build/vscpp-step-0-installation.md). If you haven't done it yet, follow the next steps after installation through the "Hello, World" tutorial to make sure Visual Studio is installed correctly and it all works.
1616

1717
It helps if you understand the fundamentals of the C++ language, and know what a compiler, linker, and debugger are used for. The tutorial also assumes that you're familiar with Windows and how to use menus, dialogs,
1818

1919
## Create a project
2020

21-
To create a project, first choose a project-type template. For each project type, Visual Studio sets compiler settings and—depending on the type—generates starter code that you can modify later.
21+
To create a project, first choose a project-type template. For each project type, Visual Studio sets compiler settings and—depending on the type—generates starter code that you can modify later. The following steps vary depending on which version of Visual Studio you are using. Make sure the version selector in the upper left of this page is set to the correct version.
2222

23-
### To create a project
23+
::: moniker range="vs-2019"
24+
25+
1. From the main menu, choose **File** > **New** > **Project** to open the **Create a New Project** dialog box.
26+
27+
1. At the top of the dialog, set **Language** to **C++**, set **Platform** to **Windows**, and set **Project type** to **Console**.
28+
29+
1. From the filtered list of project types, choose **Console App** then choose **Next**. In the next page, enter *Game* as the name for the project.
30+
31+
You can accept the default location in the **Location** drop-down list, enter a different location, or choose the **Browse** button to browse to a directory where you want to save the project.
32+
33+
When you create a project, Visual Studio puts the project in a solution. By default, the solution has the same name as the project. You can change the name in the **Solution name** box, but for this example, keep the default name.
34+
35+
1. Choose the **Create** button to create the project.
36+
37+
Visual Studio creates your new solution and project files, and opens the editor for the Game.cpp source code file it generated.
38+
39+
::: moniker-end
40+
41+
::: moniker range="vs-2017"
42+
43+
### To create a project in Visual Studio 2017
2444

2545
1. On the menu bar, choose **File** > **New** > **Project**.
2646

2747
1. In the left pane of the **New Project** dialog box, expand **Installed** and select **Visual C++**, if it isn't open already.
2848

2949
1. In the list of installed templates in the center pane, select **Windows Console Application**.
3050

31-
> [!NOTE]
32-
> In previous versions of Visual Studio the installed template is called **Win32 Console Application**.
51+
1. Enter a name for the project in the **Name** box. For this example, enter *Game*.
52+
53+
You can accept the default location in the **Location** drop-down list, enter a different location, or choose the **Browse** button to browse to a directory where you want to save the project.
54+
55+
When you create a project, Visual Studio puts the project in a solution. By default, the solution has the same name as the project. You can change the name in the **Solution name** box, but for this example, keep the default name.
56+
57+
1. Choose the **OK** button to create the project.
58+
59+
Visual Studio creates your new solution and project files, and opens the editor for the Game.cpp source code file it generated.
60+
61+
::: moniker-end
62+
63+
::: moniker range="vs-2015"
64+
65+
### To create a project in Visual Studio 2015
66+
67+
1. On the menu bar, choose **File** > **New** > **Project**.
68+
69+
1. In the left pane of the **New Project** dialog box, expand **Installed** and select **Visual C++**, if it isn't open already.
70+
71+
1. In the list of installed templates in the center pane, select **Win32 Console Application**.
3372

3473
1. Enter a name for the project in the **Name** box. For this example, enter *Game*.
3574

@@ -41,6 +80,8 @@ To create a project, first choose a project-type template. For each project type
4180

4281
Visual Studio creates your new solution and project files, and opens the editor for the Game.cpp source code file it generated.
4382

83+
::: moniker-end
84+
4485
## Organize projects and files
4586

4687
You can use **Solution Explorer** to organize and manage the projects, files, and other resources in your solution.
@@ -107,7 +148,7 @@ This part of the walkthrough shows how to add a class to the project. When you a
107148
<!--[!code-cpp[NVC_Walkthrough_Working_With_Projects#111](../ide/codesnippet/CPP/walkthrough-working-with-projects-and-solutions-cpp_5.cpp)]-->
108149

109150
```cpp
110-
#include "pch.h"
151+
#include "pch.h" // remove this line in Visual Studio 2019
111152
#include "Cardgame.h"
112153
#include <iostream>
113154

@@ -145,7 +186,7 @@ Add some code to your app that tests the new functions.
145186
// Game.cpp : Defines the entry point for the console application.
146187
//
147188

148-
#include "pch.h"
189+
#include "pch.h" // remove this line in Visual Studio 2019
149190
#include "Cardgame.h"
150191
#include <iostream>
151192

@@ -190,7 +231,7 @@ Next, build the project and run the app.
190231
191232
The **Output** window can show different steps, depending on the build configuration, but if the project build succeeds, the last line should resemble the output shown.
192233
193-
If your build didn't succeed, compare your code to the code that is shown in the earlier steps.
234+
If your build didn't succeed, compare your code to the code that is shown in the earlier steps.
194235
195236
1. To run the project, on the menu bar, choose **Debug** > **Start Without Debugging**. A console window should appear, and the output should resemble:
196237

0 commit comments

Comments
 (0)