Skip to content

Commit 9866740

Browse files
authored
Merge pull request #3782 from MicrosoftDocs/master
1/30/2019 AM Publish
2 parents a916ce1 + 9a11c1c commit 9866740

21 files changed

+58
-51
lines changed

.openpublishing.publish.config.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,5 @@
110110
}
111111
},
112112
"need_generate_pdf": false,
113-
"need_generate_intellisense": false,
114-
"enable_branch_build_custom_validation": true,
115-
"enable_pull_request_custom_validation": true
113+
"need_generate_intellisense": false
116114
}

docs/extensibility/debugger/attaching-to-the-program.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ After you have registered your programs with the appropriate port, you must atta
2929

3030
If you run your DE in the same process as the application to be debugged, then you must implement the following methods of [IDebugProgramNode2](../../extensibility/debugger/reference/idebugprogramnode2.md):
3131

32-
- [GetHostName](../../extensibility/debugger/reference/idebugprogramnode2-gethostname.md),
32+
- [GetHostName](../../extensibility/debugger/reference/idebugprogramnode2-gethostname.md)
3333

3434
- [GetHostPid](../../extensibility/debugger/reference/idebugprogramnode2-gethostpid.md)
3535

@@ -63,4 +63,4 @@ After you have registered your programs with the appropriate port, you must atta
6363
[GetProgramId](../../extensibility/debugger/reference/idebugprogram2-getprogramid.md)
6464
[IDebugProgramEx2](../../extensibility/debugger/reference/idebugprogramex2.md)
6565
[Attach](../../extensibility/debugger/reference/idebugprogramex2-attach.md)
66-
[Attach](../../extensibility/debugger/reference/idebugengine2-attach.md)
66+
[Attach](../../extensibility/debugger/reference/idebugengine2-attach.md)

docs/extensibility/debugger/reference/idebugprogramnode2-gethostpid.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,17 @@ int GetHostPid ( 
4141
The following example shows how to implement this method for a simple `CProgram` object that implements the [IDebugProgramNode2](../../../extensibility/debugger/reference/idebugprogramnode2.md) interface.
4242

4343
```cpp
44-
HRESULT CProgram::GetHostPid(DWORD* pdwHostPid) {
45-
// Check for valid argument.
46-
if (pdwHostPid)
47-
{
48-
// Get the process identifier of the calling process.
49-
*pdwHostPid = GetCurrentProcessId();
50-
51-
return S_OK;
52-
}
53-
54-
return E_INVALIDARG;
44+
HRESULT CProgram::GetHostPid(AD_PROCESS_ID* pdwHostPid) {
45+
// Check for valid argument.
46+
if (pdwHostPid == NULL)
47+
return E_INVALIDARG;
48+
49+
// Get the process identifier of the calling process.
50+
pdwHostPid->ProcessIdType = AD_PROCESS_ID_SYSTEM;
51+
pdwHostPid->ProcessId.dwProcessId = GetCurrentProcessId();
52+
return S_OK;
5553
}
5654
```
5755
5856
## See Also
59-
[IDebugProgramNode2](../../../extensibility/debugger/reference/idebugprogramnode2.md)
57+
[IDebugProgramNode2](../../../extensibility/debugger/reference/idebugprogramnode2.md)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ In this tutorial for C# development with ASP.NET Core using Visual Studio, you'l
2626

2727
### Install Visual Studio
2828

29-
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=button+cta&utm_content=download+vs2017) page to install it for free.
29+
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=inline+link&utm_content=download+vs2017) page to install it for free.
3030

3131
### Update Visual Studio
3232

docs/get-started/csharp/tutorial-console.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ namespace Calculator
524524
Congratulations on completing this tutorial! To learn even more, continue with the following tutorials.
525525
526526
> [!div class="nextstepaction"]
527-
> [C# Tutorials](/dotnet/csharp/tutorials/)
527+
> [Continue with more C# tutorials](/dotnet/csharp/tutorials/)
528528
529529
## See also
530530

docs/get-started/csharp/tutorial-debugger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ In this tutorial, you will:
3838

3939
* You must have Visual Studio 2017 installed and the **.NET desktop development** workload.
4040

41-
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=button+cta&utm_content=download+vs2017) page to install it for free.
41+
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=inline+link&utm_content=download+vs2017) page to install it for free.
4242

4343
If you need to install the workload but already have Visual Studio, click the **Open Visual Studio Installer** link in the left pane of the **New Project** dialog box (select **File** > **New** > **Project**). The Visual Studio Installer launches. Choose the **.NET desktop development** workload, then choose **Modify**.
4444

docs/get-started/csharp/tutorial-editor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ms.workload:
1919
In this 10-minute introduction to the code editor in Visual Studio, we'll add code to a file to look at some of the ways that Visual Studio makes writing, navigating, and understanding code easier.
2020

2121
> [!TIP]
22-
> If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=button+cta&utm_content=download+vs2017) page to install it for free.
22+
> If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=inline+link&utm_content=download+vs2017) page to install it for free.
2323
2424
This article assumes you're already familiar with C#. If you aren't, we suggest you look at a tutorial such as [Get started with C# and ASP.NET Core in Visual Studio](tutorial-aspnet-core.md) first.
2525

docs/get-started/csharp/tutorial-projects-solutions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ms.workload:
1818
In this introductory article, we'll explore what it means to create a *solution* and a *project* in Visual Studio. A solution is a container that's used to organize one or more related code projects, for example a class library project and a corresponding test project. We'll look at the properties of a project and some of the files it can contain. We'll also create a reference from one project to another.
1919

2020
> [!TIP]
21-
> If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=button+cta&utm_content=download+vs2017) page to install it for free.
21+
> If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=inline+link&utm_content=download+vs2017) page to install it for free.
2222
2323
We'll construct a solution and project from scratch as an educational exercise to understand the concept of a project. In your general use of Visual Studio, you'll likely use some of the various project *templates* that Visual Studio offers when you create a new project.
2424

docs/get-started/csharp/tutorial-uwp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ms.workload:
1919

2020
In this 5-10 minute introduction to the Visual Studio integrated development environment (IDE), you'll create a "Hello World" app that runs on any Windows 10 device. To do so, you'll use a Universal Windows Platform (UWP) project template, Extensible Application Markup Language (XAML), and the C# programming language.
2121

22-
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=button+cta&utm_content=download+vs2017) page to install it for free.
22+
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=inline+link&utm_content=download+vs2017) page to install it for free.
2323

2424
## Create a project
2525

docs/get-started/csharp/tutorial-wpf.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ ms.workload:
2020

2121
By completing this walkthrough, you'll become familiar with many of the tools, dialog boxes, and designers that you can use when you develop applications with Visual Studio. You'll create a "Hello, World" application, design the UI, add code, and debug errors, while you learn about working in the integrated development environment ([IDE](visual-studio-ide.md)).
2222

23+
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=inline+link&utm_content=download+vs2017) page to install it for free.
24+
2325
## Configure the IDE
2426

2527
When you start Visual Studio for the first time, you'll be prompted to sign in. This step is optional for this walkthrough. Next you may be shown a dialog box that asks you to choose your development settings and color theme. Keep the defaults and choose **Start Visual Studio**.

docs/get-started/csharp/visual-studio-ide.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ ms.workload:
1717

1818
The Visual Studio *integrated development environment* is a creative launching pad that you can use to edit, debug, and build code, and then publish an app. An integrated development environment (IDE) is a feature-rich program that can be used for many aspects of software development. Over and above the standard editor and debugger that most IDEs provide, Visual Studio includes compilers, code completion tools, graphical designers, and many more features to ease the software development process.
1919

20+
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=inline+link&utm_content=download+vs2017) page to install it for free.
21+
2022
![The Visual Studio IDE](../media/visual-studio-ide.png)
2123

2224
This image shows Visual Studio with an open project and several key tool windows you'll likely use:

docs/get-started/visual-basic/tutorial-console.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ms.workload:
2020

2121
In this tutorial for Visual Basic (VB), you'll use Visual Studio to create and run a few different console apps and explore some features of the [Visual Studio integrated development environment (IDE)](visual-studio-ide.md) while you do so.
2222

23-
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=button+cta&utm_content=download+vs2017) page to install it for free.
23+
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=inline+link&utm_content=download+vs2017) page to install it for free.
2424

2525
## Create a project
2626

docs/get-started/visual-basic/tutorial-debugger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ In this tutorial, you will:
3636

3737
* You must have Visual Studio 2017 installed and the **.NET desktop development** workload.
3838

39-
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=button+cta&utm_content=download+vs2017) page to install it for free.
39+
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=inline+link&utm_content=download+vs2017) page to install it for free.
4040

4141
If you need to install the workload but already have Visual Studio, click the **Open Visual Studio Installer** link in the left pane of the **New Project** dialog box (select **File** > **New** > **Project**). The Visual Studio Installer launches. Choose the **.NET desktop development** workload, then choose **Modify**.
4242

docs/get-started/visual-basic/tutorial-editor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ms.workload:
1919
In this 10-minute introduction to the code editor in Visual Studio, we'll add code to a file to look at some of the ways that Visual Studio makes writing, navigating, and understanding code easier.
2020

2121
> [!TIP]
22-
> If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=button+cta&utm_content=download+vs2017) page to install it for free.
22+
> If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=inline+link&utm_content=download+vs2017) page to install it for free.
2323
2424
This article assumes you're already familiar with Visual Basic. If you aren't, we suggest you look at a tutorial such as [Get started with Visual Basic in Visual Studio](../../get-started/visual-basic/tutorial-console.md) first.
2525

docs/ide/how-to-create-multi-project-templates.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,20 @@ The root *vstemplate* file for a multi-project template differs from a single-pr
6363
</TemplateContent>
6464
```
6565

66-
## To create a multi-project template from an existing solution
66+
## Create a multi-project template from an existing solution
6767

6868
1. Create a solution and add two or more projects.
6969

7070
1. Customize the projects until they are ready to be exported to a template.
7171

72+
> [!TIP]
73+
> If you're using [template parameters](template-parameters.md) and you want to refer to variables from the parent template, prefix the name of the parameter with `ext_`. For example, `$ext_safeprojectname$`.
74+
7275
1. On the **Project** menu, choose **Export Template**.
7376

7477
The **Export Template Wizard** opens.
7578

76-
1. On the **Choose Template Type** page, select **Project Template**. Select the project you want to export to a template, and then choose **Next**.
79+
1. On the **Choose Template Type** page, select **Project Template**. Select one of the projects that you want to export to a template, and then choose **Next**. (You'll repeat these steps for each project in the solution.)
7780

7881
1. On the **Select Template Options** page, enter a name and optional description, icon, and preview image for your template. Choose **Finish**.
7982

docs/ide/how-to-substitute-parameters-in-a-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Template parameters are written in the format $*parameter*$. For a complete list
1919

2020
The following section shows you how to modify a template to replace the name of a namespace with the "safe project name".
2121

22-
## To use a parameter to replace the namespace name
22+
## Example - namespace name
2323

2424
1. Insert the parameter in one or more of the code files in the template. For example:
2525

docs/ide/reference/immediate-window.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Enter the greater than sign (>) when issuing Visual Studio commands in the **Imm
9696

9797
When you click on any previous line in the **Immediate** window, you shift automatically into Mark mode. This allows you to select, edit, and copy the text of previous commands as you would in any text editor, and paste them into the current line.
9898

99-
## The equals sign(=)
99+
## The equals sign (=)
100100

101101
The window used to enter the `EvaluateStatement` command determines whether an equals sign (=) is interpreted as a comparison operator or as an assignment operator.
102102

docs/ide/template-parameters.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ manager: jillfra
1616

1717
You can replace values in your template when the template is instantiated. To set up this functionality, use *template parameters*. Template parameters can be used to replace values such as class names and namespaces in the template. The template wizard that runs in the background when a user adds a new item or project replaces these parameters.
1818

19-
## Declaring and enabling template parameters
19+
## Declare and enable template parameters
2020

2121
Template parameters are declared in the format $*parameter*$. For example:
2222

@@ -26,7 +26,7 @@ Template parameters are declared in the format $*parameter*$. For example:
2626

2727
- $guid5$
2828

29-
### To enable parameter substitution in templates
29+
### Enable parameter substitution in templates
3030

3131
1. In the *.vstemplate* file of the template, locate the `ProjectItem` element that corresponds to the item for which you want to enable parameter replacement.
3232

@@ -40,11 +40,12 @@ Template parameters are declared in the format $*parameter*$. For example:
4040

4141
## Reserved template parameters
4242

43-
The following table lists the reserved template parameters that can be used by any template.
43+
The following table lists the reserved template parameters that can be used by any template:
4444

4545
|Parameter|Description|
4646
|---------------|-----------------|
4747
|clrversion|Current version of the common language runtime (CLR).|
48+
|ext_*|Add the `ext_` prefix to any parameter to refer to the variables of the parent template. For example, `ext_safeprojectname`.|
4849
|guid[1-10]|A GUID used to replace the project GUID in a project file. You can specify up to 10 unique GUIDs (for example, `guid1`).|
4950
|itemname|The name provided by the user in the **Add New Item** dialog box.|
5051
|machinename|The current computer name (for example, Computer01).|
@@ -112,6 +113,7 @@ In the *.vstemplate* file for the project template, include the `ReplaceParamete
112113

113114
## See also
114115

116+
- [How to: Substitute parameters in a template](how-to-substitute-parameters-in-a-template.md)
115117
- [Customize templates](../ide/customizing-project-and-item-templates.md)
116118
- [How to: Create project templates](../ide/how-to-create-project-templates.md)
117119
- [Template Schema Reference](../extensibility/visual-studio-template-schema-reference.md)

docs/test/create-a-unit-test-project.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Create a unit test project"
3-
ms.date: 11/04/2016
3+
ms.date: 01/29/2019
44
ms.prod: visual-studio-dev15
55
ms.topic: conceptual
66
ms.author: gewarren
@@ -14,29 +14,29 @@ author: gewarren
1414
Unit tests often mirror the structure of the code under test. For example, a unit test project would be created for each code project in the product. The test project can be in the same solution as the production code, or it can be in a separate solution. You can have multiple unit test projects in a solution.
1515

1616
> [!NOTE]
17-
> The location of unit tests for native code and the test project structure can be different than the structure that is described in this topic. For more information, see [Writing unit tests for C/C++](writing-unit-tests-for-c-cpp.md).
17+
> The location of unit tests for native code and the test project structure can be different than the structure that is described in this article. For more information, see [Writing unit tests for C/C++](writing-unit-tests-for-c-cpp.md).
1818
19-
## To create a unit test project:
19+
## To create a unit test project
2020

21-
1. On the **File** menu, choose **New** and then choose **Project** (Keyboard **Ctrl**+**Shift**+**N**).
21+
1. On the **File** menu, choose **New** and then choose **Project**. Or, press **Ctrl**+**Shift**+**N**.
2222

23-
2. In the **New Project** dialog box, expand the **Installed** node, choose the language that you want to use for your test project, and then choose **Test**.
23+
2. In the **New Project** dialog box, expand the **Installed** node, choose the language that you want to use for your test project, and then choose **Test**.
2424

25-
3. To use one of the Microsoft unit test frameworks, choose **Unit Test Project** from the list of project templates. Otherwise, choose the project template of the unit test framework that you want to use. To test the Accounts project of our example, you would name the project **AccountsTests**.
25+
3. To use one of the Microsoft unit test frameworks, choose **Unit Test Project** from the list of project templates. Otherwise, choose the project template of the unit test framework that you want to use. Name the project, and then select **OK**.
2626

27-
4. In your unit test project, add a reference to the code under test. Here's how to create the reference to a code project in the same solution:
27+
4. In your unit test project, add a reference to the code under test. To add a reference to a code project in the same solution:
2828

29-
1. Select the project in **Solution Explorer**.
29+
1. Select the test project in **Solution Explorer**.
3030

31-
2. On the **Project** menu, choose **Add Reference**.
31+
2. On the **Project** menu, choose **Add Reference**.
3232

33-
3. In the **Reference Manager** dialog box, open the **Solution** node and choose **Projects**. Check the code project name and close the dialog box.
33+
3. In **Reference Manager**, select the **Solution** node under **Projects**. Select the code project you want to test, and then select **OK**.
3434

35-
5. If the code that you want to test is in another location, see [Managing references in a project](../ide/managing-references-in-a-project.md) for information about adding references.
35+
If the code that you want to test is in another location, see [Managing references in a project](../ide/managing-references-in-a-project.md) for information about adding a reference.
3636

3737
## Next steps
3838

39-
See one of the following sections:
39+
See one of the following sections:
4040

4141
**Writing unit tests**
4242

0 commit comments

Comments
 (0)