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
{{ message }}
Repository navigation
Commit 757b597
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/build/creating-and-managing-visual-cpp-projects.md
+13-8Lines changed: 13 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,25 @@
1
1
---
2
2
description: "Learn more about: creating and configuring Visual Studio C++ projects"
3
3
title: "Visual Studio Projects - C++"
4
-
ms.date: 04/19/2022
4
+
ms.date: 04/20/2022
5
5
helpviewer_keywords: ["Visual Studio C++ projects, creating", "projects [C++], creating", "Visual Studio C++ projects"]
6
6
---
7
7
# Visual Studio projects - C++
8
8
9
9
A *Visual Studio project* is a collection of code files and assets such as icons, images, and so on, that are built together using the MSBuild build system. MSBuild is the native build system for Visual Studio and is generally the best build system to use for Windows-specific programs. MSBuild is tightly integrated with Visual Studio, but you can also use it from the command line.
10
10
11
-
For cross-platform projects, or projects that use open-source libraries, we recommend using [CMake projects in Visual Studio](cmake-projects-in-visual-studio.md) in Visual Studio 2017 and later. For information about upgrading MSBuild projects from older versions of Visual Studio, see the [Microsoft C++ Porting and Upgrading Guide](../porting/visual-cpp-porting-and-upgrading-guide.md).
11
+
For information about upgrading MSBuild projects from older versions of Visual Studio, see the [Microsoft C++ Porting and Upgrading Guide](../porting/visual-cpp-porting-and-upgrading-guide.md).
12
+
13
+
For cross-platform projects, or projects that use open-source libraries, we recommend using [CMake projects in Visual Studio](cmake-projects-in-visual-studio.md) in Visual Studio 2017 and later.
12
14
13
15
## Create a Visual Studio C++ project
14
16
15
17
::: moniker range=">=msvc-160"
16
18
17
19
1. Create a C++ project by choosing **File** > **New** > **Project**.
18
-
1. Set the **Language** to C++.
19
-
1. In the results list, you'll see a list of project templates. Filter the templates them by setting the **Platform** or **Project Type** and then by typing keywords into the search box.
20
+
1. In the **Create a new project** dialog, set the **Language** dropdown to **C++**. This filters the list of project templates to C++ projects. You can filter the templates by setting the **Platform**, **Project Type**, or by entering keywords in the search box.
21
+
1. Select a project template, then choose **Next**.
22
+
1. On the **Configure your new project page**, enter project-specific settings such as the project name or location and then choose **Create** to create your project.
20
23
21
24

22
25
@@ -25,7 +28,7 @@ For cross-platform projects, or projects that use open-source libraries, we reco
25
28
::: moniker range="msvc-150"
26
29
27
30
1. Create a C++ project by choosing **File** > **New** > **Project**.
28
-
1. Choose **Visual C++** in the left pane. In the center pane, a list of project templates will appear:
31
+
1. Choose **Visual C++** in the left pane. In the center pane, a list of project templates appears:
29
32
30
33

31
34
@@ -47,9 +50,11 @@ The solution file coordinates build dependencies when you have multiple related
47
50
48
51
Add source code files, icons, or any other items to your project by right-clicking on the project in **Solution Explorer** and choosing **Add > New** or **Add > Existing**.
49
52
50
-
## Add third party libraries to a project
53
+
## Add third-party libraries to a project
54
+
55
+
Over 900 C++ open source libraries are available via the [vcpkg](https://vcpkg.io/) package manager. Run the Visual Studio integration step to set up the paths to that library when you reference it from any Visual Studio project.
51
56
52
-
To add third-party libraries, use the [vcpkg](https://vcpkg.io/) package manager. Run the Visual Studio integration step to set up the paths to that library when you reference it from any Visual Studio project.
57
+
There are also commercial third-party librariesthat you can install. Follow their installation instructions.
53
58
54
59
## Set compiler options and build properties
55
60
@@ -59,7 +64,7 @@ To configure build settings for a project, right-click on the project in **Solut
59
64
60
65
To compile and run the new project, press **F5** or click the *debug dropdown* with the green arrow on the main toolbar. The *configuration dropdown* is where you choose whether to perform a *Debug* or *Release* build (or some other custom configuration).
61
66
62
-
A new project compiles without errors. When adding your own code, you may occasionally introduce an error or trigger a warning. An error prevents the build from completing; a warning doesn't. All errors and warnings will appear both in the Output Window and in the Error List when you build the project.
67
+
A new project compiles without errors. When adding your own code, you may occasionally introduce an error or trigger a warning. An error prevents the build from completing; a warning doesn't. All errors and warnings appear both in the Output Window and in the Error List when you build the project.
63
68
64
69

Copy file name to clipboardExpand all lines: docs/overview/visual-cpp-in-visual-studio.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
---
2
2
title: "C and C++ in Visual Studio"
3
-
description: "Learn how to use the Microsoft C/C++ compiler, Visual Studio, and related tools to develop C++ and assembly programs for Windows, Linux, Android, and iOS. Learn what's new in Visual Studio C++ and how conformant it is with the C/C++ standards. Refresh your C/C++ language skills, learn about Visual Studio tools for developing C++ apps, and what C/C++ libraries are available for you to use to develop apps."
4
-
ms.date: 04/19/2022
3
+
description: "Learn how to use the Microsoft C/C++ compilerand related tools to develop C++ and assembly programs for Windows, Linux, Android, and iOS."
4
+
ms.date: 04/20/2022
5
5
ms.technology: "cpp-ide"
6
-
helpviewer_keywords: ["Visual C++, home page, "]
6
+
helpviewer_keywords: ["Visual C++, home page"]
7
7
---
8
8
# C and C++ in Visual Studio
9
9
@@ -47,7 +47,7 @@ Microsoft Visual C++ (MSVC) refers to the C++, C, and assembly language developm
47
47
48
48
Visual Studio 2015, 2017, 2019, and 2022 can be installed side-by-side. You can use Visual Studio 2019 (compiler toolset v142) or Visual Studio 2017 (v141) to edit and build programs using the toolset from Visual Studio 2017 (v141) and Visual Studio 2015 (v140).
49
49
50
-
## What's new for C++ in Visual Studio and conformance progress
50
+
## What's new for C++ in Visual Studio
51
51
52
52
[What's New for C++ in Visual Studio](what-s-new-for-visual-cpp-in-visual-studio.md)\
53
53
Find out what's new in Visual Studio.
@@ -112,7 +112,7 @@ Use SAL annotations or the C++ Core Guidelines checkers to perform static analys
112
112
[Write unit tests for C/C++ in Visual Studio](/visualstudio/test/writing-unit-tests-for-c-cpp)\
113
113
Create unit tests using the Microsoft Unit Testing Framework for C++, Google Test, Boost.Test, or CTest.
Learn how to create traditional native C++ desktop applications for Windows.
@@ -159,7 +159,7 @@ A common reference to the shared C and C++ language preprocessor.
159
159
The reference guide to the Microsoft extensions to the C++ language for creating C++ Universal Windows Platform apps, C++ Windows runtime components that can be consumed by JavaScript-based Windows apps, and Windows DirectX games and graphics-intensive apps.
160
160
161
161
[C++/CLI language reference](https://www.ecma-international.org/wp-content/uploads/ECMA-372_1st_edition_december_2005.pdf)\
162
-
The ECMA standard for the C++/CLI language.
162
+
The ECMA standard for the C++/CLI programming language.
163
163
164
164
[Compiler intrinsics and assembly language](../intrinsics/compiler-intrinsics-and-assembly-language.md)\
165
165
Guides to the compiler intrinsics supported or implemented by the Microsoft C/C++ compilers on each platform.
0 commit comments