Skip to content

Commit 25570fb

Browse files
authored
Merge pull request #4741 from MicrosoftDocs/master
5/30/2019 AM Publish
2 parents 40d6122 + e672312 commit 25570fb

File tree

55 files changed

+129
-88
lines changed

Some content is hidden

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

55 files changed

+129
-88
lines changed

docs/code-quality/ca2214-do-not-call-overridable-methods-in-constructors.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "CA2214: Do not call overridable methods in constructors"
3-
ms.date: 11/04/2016
3+
ms.date: 05/29/2016
44
ms.topic: reference
55
f1_keywords:
66
- "DoNotCallOverridableMethodsInConstructors"
@@ -33,7 +33,10 @@ The constructor of an unsealed type calls a virtual method defined in its class.
3333

3434
## Rule description
3535

36-
When a virtual method is called, the actual type that executes the method is not selected until run time. When a constructor calls a virtual method, it is possible that the constructor for the instance that invokes the method has not executed.
36+
When a virtual method is called, the actual type that executes the method is not selected until run time. When a constructor calls a virtual method, it's possible that the constructor for the instance that invokes the method has not executed.
37+
38+
> [!NOTE]
39+
> The binary analysis implementation of this rule has a different diagnostic message of "**\[Constructor name] contains a call chain that results in a call to a virtual method defined by the class. Review the following call stack for unintended consequences**". The [FxCop analyzers](install-fxcop-analyzers.md) implementation of this rule has a diagnostic message of "**Do not call overridable methods in constructors**".
3740
3841
## How to fix violations
3942

@@ -45,7 +48,7 @@ Do not suppress a warning from this rule. The constructor should be redesigned t
4548

4649
## Example
4750

48-
The following example demonstrates the effect of violating this rule. The test application creates an instance of `DerivedType`, which causes its base class (`BadlyConstructedType`) constructor to execute. `BadlyConstructedType`'s constructor incorrectly calls the virtual method `DoSomething`. As the output shows, `DerivedType.DoSomething()` executes, and does so before `DerivedType`'s constructor executes.
51+
The following example demonstrates the effect of violating this rule. The test application creates an instance of `DerivedType`, which causes its base class (`BadlyConstructedType`) constructor to execute. `BadlyConstructedType`'s constructor incorrectly calls the virtual method `DoSomething`. As the output shows, `DerivedType.DoSomething()` executes before `DerivedType`'s constructor executes.
4952

5053
[!code-csharp[FxCop.Usage.CtorVirtual#1](../code-quality/codesnippet/CSharp/ca2214-do-not-call-overridable-methods-in-constructors_1.cs)]
5154
[!code-vb[FxCop.Usage.CtorVirtual#1](../code-quality/codesnippet/VisualBasic/ca2214-do-not-call-overridable-methods-in-constructors_1.vb)]
Loading

docs/get-started/csharp/tutorial-aspnet-core-ef-step-02.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ public void OnGet()
106106

107107
You should now see the actual server time in the browser when you navigate to the app.
108108

109+
> [!NOTE]
110+
> Your output might differ from the image, since the output format of ToShortDateTimeString depends on the current culture setting. See <xref:System.DateTime.ToShortTimeString>.
111+
109112
![Visual Studio 2019 ASP.NET Core Project in Browser](media/vs-2019/vs2019-app-fixed-in-browser.png)
110113

111114
## Next steps

docs/get-started/csharp/tutorial-aspnet-core.md

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Tutorial: Get started with C# and ASP.NET Core"
33
titleSuffix: ""
44
description: "Learn how to create an ASP.NET Core web app in Visual Studio with C#, step-by-step."
55
ms.custom: "seodec18, get-started"
6-
ms.date: 03/23/2019
6+
ms.date: 05/29/2019
77
ms.technology: vs-ide-general
88
ms.prod: visual-studio-windows
99
ms.topic: tutorial
@@ -39,7 +39,7 @@ If you haven't already installed Visual Studio, go to the [Visual Studio downloa
3939

4040
### Update Visual Studio
4141

42-
If you've already installed Visual Studio, make sure that you are running the most recent release. For more information about how to update your installation, see the [Update Visual Studio to the most recent release](../../install/update-visual-studio.md) page.
42+
If you've already installed Visual Studio, make sure that you're running the most recent release. For more information about how to update your installation, see the [Update Visual Studio to the most recent release](../../install/update-visual-studio.md) page.
4343

4444
### Choose your theme (optional)
4545

@@ -92,7 +92,7 @@ If you don't see the **ASP.NET Core Web Application** project template, you can
9292
![New ASP.NET Core Web Application dialog box](media/new-project-csharp-aspnet-razor-web-app.png)
9393

9494
> [!NOTE]
95-
> If you don't see **ASP.NET Core 2.1** or later from the top drop-down menu, make sure that you are running the most recent release of Visual Studio. For more information about how to update your installation, see the [Update Visual Studio to the most recent release](../../install/update-visual-studio.md) page.
95+
> If you don't see **ASP.NET Core 2.1** from the top drop-down menu, make sure that you are running the most recent release of Visual Studio. For more information about how to update your installation, see the [Update Visual Studio to the most recent release](../../install/update-visual-studio.md) page.
9696
9797
::: moniker-end
9898

@@ -102,28 +102,28 @@ If you don't see the **ASP.NET Core Web Application** project template, you can
102102

103103
![View the 'Create a new project' window](../../get-started/media/vs-2019/create-new-project-dark-theme.png)
104104

105-
1. On the **Create a new project** window, enter or type *ASP.NET* in the search box. Next, choose **C#** from the Language list, and then choose **Windows** from the Platform list.
105+
1. On the **Create a new project** window, enter or type *ASP.NET* in the search box. Next, choose **C#** from the Language list, and then choose **Windows** from the Platform list.
106106

107107
After you apply the language and platform filters, choose the **ASP.NET Core Web Application** template, and then choose **Next**.
108108

109109
![Choose the C# template for the ASP.NET Core Web Application](./media/vs-2019/csharp-create-new-project-search-aspnet-core-filtered.png)
110110

111111
> [!NOTE]
112-
> If you do not see the **ASP.NET Core Web Application** template, you can install it from the **Create a new project** window. In the **Not finding what you're looking for?** message, choose the **Install more tools and features** link.
112+
> If you don't see the **ASP.NET Core Web Application** template, you can install it from the **Create a new project** window. In the **Not finding what you're looking for?** message, choose the **Install more tools and features** link.
113+
>
114+
> ![The 'Install more tools and features' link from the 'Not finding what you're looking for' message in the 'Create new project' window](../../get-started/media/vs-2019/not-finding-what-looking-for.png)
113115
>
114-
> ![The 'Install more tools and features' link from the 'Not finding what you're looking for' message in the 'Create new project' window](../../get-started/media/vs-2019/not-finding-what-looking-for.png)
115-
>
116116
> Then, in the Visual Studio Installer, choose the **ASP.NET and web development** workload.
117117
>
118118
> ![.NET Core cross-platform development workload in the Visual Studio Installer](../../get-started/media/aspnet-core-web-dev-workload.png)
119119
>
120-
> After that, choose the **Modify** button in the Visual Studio Installer. You might be prompted to save your work; if so, do so. Next, choose **Continue** to install the workload. Then, return to step 2 in this "[Create a project](#create-a-project)" procedure.
120+
> After that, choose the **Modify** button in the Visual Studio Installer. If you're prompted to save your work, do so. Next, choose **Continue** to install the workload. Then, return to step 2 in this "[Create a project](#create-a-project)" procedure.
121121
122122
1. In the **Configure your new project** window, type or enter *MyCoreApp* in the **Project name** box. Then, choose **Create**.
123123

124124
![in the 'Configure your new project' window, name your project 'MyCoreApp'](./media/vs-2019/csharp-name-your-aspnet-mycoreapp-project.png)
125125

126-
1. In the **Create a new ASP.NET Core Web Application** window, verify that **ASP.NET Core 2.1** or later appears in the top drop-down menu. Then, choose **Web Application**, which includes example Razor Pages. Next, choose **Create**.
126+
1. In the **Create a new ASP.NET Core Web Application** window, verify that **ASP.NET Core 2.1** appears in the top drop-down menu. Then, choose **Web Application**, which includes example Razor Pages. Next, choose **Create**.
127127

128128
![The 'Create a new ASP.NET Core Web Application' window](./media/vs-2019/csharp-create-aspnet-core-razor-pages-app.png)
129129

@@ -133,7 +133,7 @@ If you don't see the **ASP.NET Core Web Application** project template, you can
133133

134134
### About your solution
135135

136-
This solution follows the **Razor Page** design pattern. It is different than the [Model-View-Controller (MVC)](/aspnet/core/tutorials/first-mvc-app/start-mvc?view=aspnetcore-2.1&tabs=aspnetcore2x) design pattern in that its streamlined to include the model and controller code within the Razor Page itself.
136+
This solution follows the **Razor Page** design pattern. It's different than the [Model-View-Controller (MVC)](/aspnet/core/tutorials/first-mvc-app/start-mvc?view=aspnetcore-2.1&tabs=aspnetcore2x) design pattern in that it's streamlined to include the model and controller code within the Razor Page itself.
137137

138138
## Tour your solution
139139

@@ -176,15 +176,12 @@ This solution follows the **Razor Page** design pattern. It is different than th
176176
> [!NOTE]
177177
> If you get an error message that says **Unable to connect to web server 'IIS Express'**, close Visual Studio and then open it by using the **Run as administrator** option from the right-click or context menu. Then, run the application again.
178178
>
179-
> You might also get a message that asks if you want to accept an IIS SSL Express certificate. To view the code in a web browser, choose **Yes**, and then choose **Yes** if you receive a follow-up security warning message.
179+
> You might also get a message that asks if you want to accept an IIS SSL Express certificate. To view the code in a web browser, choose **Yes**, and then choose **Yes** if you receive a follow-up security warning message.
180180
181-
1. Visual Studio launches a browser window. You should then see **Home**, **About**, and **Contact** pages in the menu bar. (If you do not, choose the "hamburger" menu item to view them.)
181+
1. Visual Studio launches a browser window. You should then see **Home**, **About**, and **Contact** pages in the menu bar. (If you don't, choose the "hamburger" menu item to view them.)
182182

183183
![Select the "hamburger" menu item from the menu bar in your web app](media/csharp-aspnet-razor-browser-page.png)
184184

185-
> [!TIP]
186-
> You cannot edit code in the Visual Studio code editor when your project is open in a browser window.
187-
188185
1. Choose **About** from the menu bar.
189186

190187
![Select About in the browser window's menu bar for your app](media/csharp-aspnet-razor-browser-page-about-menu.png)
@@ -193,7 +190,7 @@ This solution follows the **Razor Page** design pattern. It is different than th
193190

194191
![View the text on the About page](media/csharp-aspnet-razor-browser-page-about.png)
195192

196-
1. Keep the browser window open and return to Visual Studio.
193+
1. Return to Visual Studio, and then press **Shift+F5** to stop Debug mode. This also closes the project in the browser window.
197194

198195
1. In Visual Studio, choose **About.cshtml**. Then, delete the word _additional_ and in its place, add the words _file and directory_.
199196

@@ -217,7 +214,7 @@ This solution follows the **Razor Page** design pattern. It is different than th
217214
}
218215
```
219216

220-
1. Notice that two wavy underlines appear under **Environment** and **String**. The wavy underlines appear because these types are not in scope.
217+
1. Notice that two wavy underlines appear under **Environment** and **String**. The wavy underlines appear because these types aren't in scope.
221218

222219
![Errors marked with wavy underlines in OnGet method](media/csharp-aspnet-razor-add-new-on-get-method.png)
223220

@@ -229,7 +226,7 @@ This solution follows the **Razor Page** design pattern. It is different than th
229226

230227
![Add the "using System;" directive](media/csharp-aspnet-razor-add-usings.png)
231228

232-
1. Press **Ctrl**+**S** to save your changes and refresh your app in the web browser.
229+
1. Press **Ctrl**+**S** to save your changes, and then press **F5** to open your project in the web browser.
233230

234231
1. At the top of the web site, choose **About** to view your changes.
235232

docs/get-started/tutorial-open-project-from-repo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ If you're ready to code with Visual Studio, dive into any of the following langu
173173

174174
- [Visual Studio tutorials | **C#**](./csharp/index.yml)
175175
- [Visual Studio tutorials | **Visual Basic**](./visual-basic/index.yml)
176-
- [Visual Studio tutorials | **C++**](/cpp/get-started/)
176+
- [Visual Studio tutorials | **C++**](/cpp/get-started/tutorial-console-cpp)
177177
- [Visual Studio tutorials | **Python**](/visualstudio/python/)
178178
- [Visual Studio tutorials | **JavaScript**, **TypeScript**, and **Node.js**](/visualstudio/javascript/)
179179

docs/ide/default-keyboard-shortcuts-in-visual-studio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ The sections in the following table include commands that are global in that you
373373
|View.ObjectBrowser|**Ctrl+Alt+J**|
374374
|View.ObjectBrowserGoToSearchCombo|**Ctrl+K, Ctrl+R**|
375375
|View.Output|**Ctrl+Alt+O** (letter 'O')|
376-
|View.PopBrowseContex|**Ctrl+Shift+8**|
376+
|View.PopBrowseContext|**Ctrl+Shift+8** (C++ only)|
377377
|View.PropertiesWindow|**F4**|
378378
|View.PropertyPages|**Shift+F4**|
379379
|View.ResourceView|**Ctrl+Shift+E**|

docs/ide/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ sections:
6464
- image:
6565
src: https://docs.microsoft.com/media/logos/logo_cplusplus.svg
6666
text: C++
67-
href: /cpp/get-started/
67+
href: /cpp/get-started/tutorial-console-cpp
6868
- image:
6969
src: https://docs.microsoft.com/media/logos/logo_python.svg
7070
text: Python

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ ms.custom: seodec18
129129
</td>
130130
<td style="border-top-color:transparent!important;padding-left:0;">
131131
<ul class="noBullet"> <li>
132-
<a class="barLink" href="/cpp/get-started/">
132+
<a class="barLink" href="/cpp/get-started/tutorial-console-cpp">
133133
<img src="https://docs.microsoft.com/media/logos/logo_Cplusplus.svg" alt="C++ icon">
134134
C++
135135
</a>

docs/install/changed-payloads.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: "When package payloads change after a release"
3+
description: "When creating a layout, learn how to determine if package payloads changed after a release has already shipped."
4+
ms.date: 05/22/2019
5+
ms.topic: conceptual
6+
author: et13
7+
ms.author: tglee
8+
manager: jillfra
9+
ms.workload:
10+
- "multiple"
11+
ms.prod: visual-studio-windows
12+
ms.technology: vs-installation
13+
---
14+
# Package payload changes
15+
16+
Some package payloads are allowed to change after a release has already shipped. When you or someone else creates a layout, this behavior might result in different layout content, depending on when a layout was created.
17+
18+
## Verify that a layout includes package payload changes
19+
20+
Here's how to determine if the layout that was previously created has acquired the package payloads that were modified after the release shipped:
21+
22+
1. Open the setup log. The log is typically at `%TEMP%\dd_setup_[date].log` where `[date]` is when the layout operation started in `yyyyMMddHHmmss` format.
23+
24+
2. Look for a line in the log that is structured like the following text:
25+
26+
`Falling back to signature and signer check because hash verification returned HashMismatch for path: [path]`
27+
28+
3. Then, look for lines later in the log that indicate that the download succeeded for the [path]. They might look similar to the following text:
29+
30+
`Download of [url] succeeded using engine 'WebClient'`
31+
32+
`END: Downloading [url] to [path]`
33+
34+
## See also
35+
36+
* [Create a network installation of Visual Studio](create-a-network-installation-of-visual-studio.md)
37+
* [Update a networked-based installation of Visual Studio](update-a-network-installation-of-visual-studio.md)

docs/sharepoint/deploying-publishing-and-upgrading-sharepoint-solution-packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Deploying, Publishing, and Upgrading SharePoint Solution Packages | Microsoft Docs"
2+
title: "Deploy, publish, & upgrade SharePoint solution packages"
33
ms.date: "02/02/2017"
44
ms.topic: "conceptual"
55
f1_keywords:

docs/sharepoint/how-to-add-a-property-to-a-custom-sharepoint-project-item-type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "How to: Add a Property to a Custom SharePoint Project Item Type | Microsoft Docs"
2+
title: "Add property to custom SharePoint project item type"
33
ms.date: "02/02/2017"
44
ms.topic: "conceptual"
55
dev_langs:

docs/sharepoint/how-to-add-a-shortcut-menu-item-to-a-custom-sharepoint-project-item-type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "How to: Add a Shortcut Menu Item to a Custom SharePoint Project Item Type | Microsoft Docs"
2+
title: "Add shortcut menu item to custom SharePoint project item type"
33
ms.date: "02/02/2017"
44
ms.topic: "conceptual"
55
dev_langs:

docs/sharepoint/how-to-add-a-shortcut-menu-item-to-a-sharepoint-project-item-extension.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "How to: Add a Shortcut Menu Item to a SharePoint Project Item Extension | Microsoft Docs"
2+
title: "Add shortcut menu item to SharePoint project item extension"
33
ms.date: "02/02/2017"
44
ms.topic: "conceptual"
55
dev_langs:

docs/sharepoint/how-to-add-and-remove-features-and-items-to-a-package-by-using-the-package-designer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "How to: Add and Remove Features and Items to a Package by Using the Package Designer | Microsoft Docs"
2+
title: "Package designer: Add & remove features and items to package"
33
ms.date: "02/02/2017"
44
ms.topic: "conceptual"
55
f1_keywords:

docs/sharepoint/how-to-add-and-remove-features-and-items-to-a-package-by-using-the-packaging-explorer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "How to: Add and Remove Features and Items to a Package by Using the Packaging Explorer | Microsoft Docs"
2+
title: "Packaging Explorer: Add & remove features & items to package"
33
ms.date: "02/02/2017"
44
ms.topic: "conceptual"
55
f1_keywords:

docs/sharepoint/how-to-create-a-sharepoint-solution-package-by-using-msbuild-tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "How to: Create a SharePoint Solution Package by Using MSBuild Tasks | Microsoft Docs"
2+
title: "Create SharePoint solution package using MSBuild tasks"
33
ms.date: "02/02/2017"
44
ms.topic: "conceptual"
55
dev_langs:

docs/sharepoint/how-to-create-a-user-control-for-a-sharepoint-application-page-or-web-part.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "How to: Create a User Control for a SharePoint Application Page or Web Part | Microsoft Docs"
2+
title: "Create user control for SharePoint app page or web part"
33
ms.date: "02/02/2017"
44
ms.topic: "conceptual"
55
dev_langs:

docs/sharepoint/how-to-customize-a-sharepoint-solution-package-by-using-msbuild-targets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "How to: Customize a SharePoint Solution Package by Using MSBuild Targets | Microsoft Docs"
2+
title: "Customize SharePoint solution package using MSBuild targets"
33
ms.date: "02/02/2017"
44
ms.topic: "conceptual"
55
dev_langs:

docs/sharepoint/how-to-deploy-and-publish-a-sharepoint-solution-to-a-local-sharepoint-site.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "How to: Deploy and Publish a SharePoint Solution to a Local SharePoint Site | Microsoft Docs"
2+
title: "Deploy & publish SharePoint solution to local SharePoint site"
33
ms.date: "02/02/2017"
44
ms.topic: "conceptual"
55
dev_langs:

docs/sharepoint/how-to-deploy-publish-and-upgrade-sharepoint-solutions-on-a-remote-server.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "How to: Deploy, Publish, and Upgrade SharePoint Solutions on a Remote Server | Microsoft Docs"
2+
title: "Deploy, publish, & upgrade SharePoint solutions remotely"
33
ms.date: "02/02/2017"
44
ms.topic: "conceptual"
55
dev_langs:
@@ -29,7 +29,7 @@ ms.workload:
2929

3030
4. Choose the **Publish** button.
3131

32-
5. Log on to the remote server if user authentication is required.
32+
5. Sign in to the remote server if user authentication is required.
3333

3434
The publishing progress appears in the Visual Studio **Output** window. When the process is finished, the solution (*.wsp*) file is installed on the remote SharePoint server. However, it must still be activated before it can be used in SharePoint.
3535

@@ -56,7 +56,7 @@ ms.workload:
5656

5757
7. Choose the **Publish** button.
5858

59-
8. Log on to the remote server if user authentication is required.
59+
8. Sign in to the remote server if user authentication is required.
6060

6161
If you logged in to the remote server recently, authentication may not be required.
6262

docs/sharepoint/how-to-get-data-for-a-built-in-sharepoint-node-in-server-explorer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "How to: Get Data for a Built-In SharePoint Node in Server Explorer | Microsoft Docs"
2+
title: "Get data for built-in SharePoint node in Server Explorer"
33
ms.date: "02/02/2017"
44
ms.topic: "conceptual"
55
dev_langs:

docs/sharepoint/how-to-run-code-when-a-sharepoint-project-is-deployed-or-retracted.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "How to: Run Code When a SharePoint Project is Deployed or Retracted | Microsoft Docs"
2+
title: "Run code when SharePoint project is deployed or retracted"
33
ms.date: "02/02/2017"
44
ms.topic: "conceptual"
55
dev_langs:

0 commit comments

Comments
 (0)