Skip to content

Commit 7871363

Browse files
author
Colin Robertson
authored
Merge pull request MicrosoftDocs#915 from MicrosoftDocs/master636899103057580984
Fix git push error for protected CLA branch
2 parents 3c8b2e3 + b72a10a commit 7871363

File tree

51 files changed

+1906
-557
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1906
-557
lines changed

.openpublishing.redirection.json

Lines changed: 651 additions & 12 deletions
Large diffs are not rendered by default.

docs/TOC.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# [C++ in Visual Studio 2017](overview/visual-cpp-in-visual-studio.md)
1+
# [C++ in Visual Studio](overview/visual-cpp-in-visual-studio.md)
22
## [Overview of C++ development in Visual Studio](overview/overview-of-cpp-development.md)
3-
## [What's new for C++ in Visual Studio 2017](overview/what-s-new-for-visual-cpp-in-visual-studio.md)
4-
## [C++ conformance improvements in Visual Studio 2017](overview/cpp-conformance-improvements-2017.md)
3+
## [What's new for C++ in Visual Studio](overview/what-s-new-for-visual-cpp-in-visual-studio.md)
4+
## [C++ conformance improvements in Visual Studio](overview/cpp-conformance-improvements.md)
55
## [Microsoft C++ language conformance](overview/visual-cpp-language-conformance.md)
66
## [Supported platforms](overview/supported-platforms-visual-cpp.md)
77
## [Visual C++ Tools and Features in Visual Studio Editions](overview/visual-cpp-tools-and-features-in-visual-studio-editions.md)

docs/_breadcrumb/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
items:
99
- name: Documentation
1010
tocHref: /cpp/
11-
topicHref: /cpp/visual-cpp-in-visual-studio
11+
topicHref: /cpp/overview/visual-cpp-in-visual-studio
1212
items:
1313
- name: C++ Language
1414
tocHref: /cpp/cpp/
41.8 KB
Loading
Loading
69.7 KB
Loading

docs/build/reference/zc-twophase.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ typename T::template X<T>::TYPE func(typename T::TYPE)
146146

147147
Under **/Zc:twoPhase-** and in older compilers, the compiler only requires the `template` keyword on line 2. By default, and in conformance mode, the compiler now also requires the `template` keyword on line 4 to indicate that `T::X<T>` is a template. Look for code that is missing this keyword, and supply it to make your code conform to the standard.
148148

149-
For more information about conformance issues, see [C++ conformance improvements in Visual Studio](../../overview/cpp-conformance-improvements-2017.md) and [Nonstandard Behavior](../../cpp/nonstandard-behavior.md).
149+
For more information about conformance issues, see [C++ conformance improvements in Visual Studio](../../overview/cpp-conformance-improvements.md) and [Nonstandard Behavior](../../cpp/nonstandard-behavior.md).
150150

151151
### To set this compiler option in the Visual Studio development environment
152152

docs/build/vscpp-step-0-installation.md

Lines changed: 135 additions & 15 deletions
Large diffs are not rendered by default.

docs/build/vscpp-step-1-create.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Create a C++ console app project
33
description: "Create a Hello World console app in Visual C++"
44
ms.custom: "mvc"
5-
ms.date: 12/12/2017
5+
ms.date: 04/02/2019
66
ms.topic: "tutorial"
77
ms.devlang: "cpp"
88
ms.assetid: 45138d70-719d-42dc-90d7-1d0ca31a2f54
@@ -13,12 +13,32 @@ The usual starting point for a C++ programmer is a "Hello, world!" application t
1313

1414
## Prerequisites
1515

16-
- Have Visual Studio with the Desktop development with C++ workload installed and running on your computer. If it's not installed yet, see [Install C++ support in Visual Studio 2017](vscpp-step-0-installation.md).
16+
- Have Visual Studio with the Desktop development with C++ workload installed and running on your computer. If it's not installed yet, see [Install C++ support in Visual Studio](vscpp-step-0-installation.md).
1717

1818
## Create your app project
1919

2020
Visual Studio uses *projects* to organize the code for an app, and *solutions* to organize your projects. A project contains all the options, configurations, and rules used to build your apps, and manages the relationship between all the project's files and any external files. To create your app, first, you'll create a new project and solution.
2121

22+
::: moniker range=">=vs-2019"
23+
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+
26+
![Create a new project](media/vs2019-choose-console-app.png "Open the Create a new project dialog")
27+
28+
1. In the **Configure your new project** dialog, enter *HelloWorld* in the **Project name** edit box. Choose **Create** to create the project.
29+
30+
![Name and create the new project](media/vs2019-configure-new-project-hello-world.png "Name and create the new project")
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+
![Hello World project in the IDE](media/vs2019-hello-world-code.png "Hello World project in the IDE")
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.
37+
38+
::: moniker-end
39+
40+
::: moniker range="<=vs-2017"
41+
2242
1. In Visual Studio, open the **File** menu and choose **New > Project** to open the **New Project** dialog.
2343

2444
![Open the New Project dialog](media/vscpp-file-new-project.gif "Open the New Project dialog")
@@ -79,11 +99,15 @@ When the code looks like this in the editor, you're ready to go on to the next s
7999
80100
[I ran into a problem.](#add-a-source-code-file-issues)
81101
102+
::: moniker-end
103+
82104
## Next Steps
83105
84106
> [!div class="nextstepaction"]
85107
> [Build and run a C++ project](vscpp-step-2-build.md)
86108
109+
::: moniker range="<=vs-2017"
110+
87111
## Troubleshooting guide
88112
89113
Come here for solutions to common issues when you create your first C++ project.
@@ -120,4 +144,6 @@ If red squiggles appear under anything in the source code editor, check that you
120144
121145
[Go back](#add-code-to-the-source-file).
122146
147+
::: moniker-end
148+
123149
<iframe src="" height="0" width="0" frameborder="0" name="frameTarget" />

docs/cpp/constructors-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ Derived d3 = d2 calls: Base(Base&)
627627
Derived d4 calls: Base()*/
628628
```
629629

630-
**Visual Studio 2017 version 15.7 and later**: The **using** statement in **/std:C++17** mode brings into scope all constructors from the base class except those that have an identical signature to constructors in the derived class. In general, it is best to use inheriting constructors when the derived class declares no new data members or constructors. See also [Improvements in Visual Studio 2017 version 15.7](../overview/cpp-conformance-improvements-2017.md#improvements_157).
630+
**Visual Studio 2017 version 15.7 and later**: The **using** statement in **/std:C++17** mode brings into scope all constructors from the base class except those that have an identical signature to constructors in the derived class. In general, it is best to use inheriting constructors when the derived class declares no new data members or constructors. See also [Improvements in Visual Studio 2017 version 15.7](../overview/cpp-conformance-improvements.md#improvements_157).
631631

632632
A class template can inherit all the constructors from a type argument if that type specifies a base class:
633633

Loading
Loading
Loading
Loading

docs/index.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.author: "mblome"
99
<div class="container">
1010
<ul class="cardsY panelContent featuredContent">
1111
<li>
12-
<a href="http://github.com/%3Cspan%20class="x x-first x-last">visualstudio/install/install-visual-studio">
12+
<a href="http://github.com/%3Cspan%20class="x x-first x-last">cpp/build/vscpp-step-0-installation">
1313
<div class="cardSize">
1414
<div class="cardPadding">
1515
<div class="card">
@@ -27,7 +27,7 @@ ms.author: "mblome"
2727
</a>
2828
</li>
2929
<li>
30-
<a href="http://github.com/%3Cspan%20class="x x-first x-last">visualstudio/ide/getting-started-with-cpp-in-visual-studio">
30+
<a href="http://github.com/%3Cspan%20class="x x-first x-last">cpp/get-started/tutorial-console-cpp">
3131
<div class="cardSize">
3232
<div class="cardPadding">
3333
<div class="card">
@@ -45,7 +45,7 @@ ms.author: "mblome"
4545
</a>
4646
</li>
4747
<li>
48-
<a href="http://github.com/cpp/what-s-new-for-%3Cspan%20class="x x-first x-last">overview/visual-cpp-in-visual-studio.md">
48+
<a href="http://github.com/cpp/%3Cspan%20class="x x-first x-last">overview/what-s-new-for-visual-cpp-in-visual-studio">
4949
<div class="cardSize">
5050
<div class="cardPadding">
5151
<div class="card">
@@ -55,7 +55,7 @@ ms.author: "mblome"
5555
</div>
5656
</div>
5757
<div class="cardText">
58-
<h3>What’s new for C++ in Visual Studio 2017</h3>
58+
<h3>What’s new for C++ in Visual Studio</h3>
5959
</div>
6060
</div>
6161
</div>
@@ -74,7 +74,7 @@ ms.author: "mblome"
7474
<a href="#workloads1">Workloads</a>
7575
<ul id="workloads1" class="cardsC">
7676
<li>
77-
<a href="http://github.com/cpp/%3Cspan%20class="x x-first x-last">windows/universal-windows-apps-cpp">
77+
<a href="http://github.com/cpp/%3Cspan%20class="x x-first x-last">cppcx/universal-windows-apps-cpp">
7878
<div class="cardSize">
7979
<div class="cardPadding">
8080
<div class="card">
@@ -219,7 +219,7 @@ ms.author: "mblome"
219219
</a>
220220
</li>
221221
<li>
222-
<a href="http://github.com/cpp/%3Cspan%20class="x x-first x-last">ide/building-cpp-projects-in-visual-studio">
222+
<a href="http://github.com/cpp/%3Cspan%20class="x x-first x-last">build/projects-and-build-systems-cpp">
223223
<div class="cardSize">
224224
<div class="cardPadding">
225225
<div class="card">
@@ -276,7 +276,7 @@ ms.author: "mblome"
276276
</a>
277277
</li>
278278
<li>
279-
<a href="http://github.com/cpp/%3Cspan%20class="x x-first x-last">ide/deploying-native-desktop-applications-visual-cpp">
279+
<a href="http://github.com/cpp/%3Cspan%20class="x x-first x-last">windows/deploying-native-desktop-applications-visual-cpp">
280280
<div class="cardSize">
281281
<div class="cardPadding">
282282
<div class="card">
@@ -363,7 +363,7 @@ ms.author: "mblome"
363363
</a>
364364
</li>
365365
<li>
366-
<a href="http://github.com/cpp/%3Cspan%20class="x x-first x-last">windows/component-extensions-for-runtime-platforms">
366+
<a href="http://github.com/cpp/%3Cspan%20class="x x-first x-last">extensions/component-extensions-for-runtime-platforms">
367367
<div class="cardSize">
368368
<div class="cardPadding">
369369
<div class="card">
@@ -439,7 +439,7 @@ ms.author: "mblome"
439439
</a>
440440
</li>
441441
<li>
442-
<a href="http://github.com/cpp/%3Cspan%20class="x x-first x-last">windows/windows-runtime-cpp-template-library-wrl">
442+
<a href="http://github.com/cpp/%3Cspan%20class="x x-first x-last">cppcx/wrl/windows-runtime-cpp-template-library-wrl">
443443
<div class="cardSize">
444444
<div class="cardPadding">
445445
<div class="card">

0 commit comments

Comments
 (0)