Skip to content

Commit 97ff6d7

Browse files
authored
Merge pull request #4407 from MicrosoftDocs/master637104961897810471
For protected CLA branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents 1399908 + cd2ef76 commit 97ff6d7

4 files changed

+60
-14
lines changed

docs/install/modify-visual-studio.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,17 @@ Here's how.
4040
4141
## Modify workloads
4242

43-
[Workloads](https://visualstudio.microsoft.com/vs/visual-studio-workloads/) contain the features you need for the programming language or platform that you're using. Use workloads to modify Visual Studio so that it supports the work you want to do, when you want to do it.
43+
::: moniker range="vs-2017"
44+
45+
[Workloads](https://visualstudio.microsoft.com/vs/support/selecting-workloads-visual-studio-2017/) contain the features you need for the programming language or platform that you're using. Use workloads to modify Visual Studio so that it supports the work you want to do, when you want to do it.
46+
47+
::: moniker-end
48+
49+
::: moniker range="vs-2019"
50+
51+
Workloads contain the features you need for the programming language or platform that you're using. Use workloads to modify Visual Studio so that it supports the work you want to do, when you want to do it.
52+
53+
::: moniker-end
4454

4555
>[!NOTE]
4656
> The following procedure assumes that you have an internet connection.
@@ -113,13 +123,12 @@ Here's how.
113123

114124
## Modify individual components
115125

116-
If you don't want to install [workloads](https://visualstudio.microsoft.com/vs/visual-studio-workloads/) to customize your Visual Studio installation, choose the **Individual Components** tab from the Visual Studio Installer, select what you want, and then follow the prompts.
126+
If you don't want to install workloads to customize your Visual Studio installation, choose the **Individual Components** tab from the Visual Studio Installer, select what you want, and then follow the prompts.
117127

118128
[!INCLUDE[install_get_support_md](includes/install_get_support_md.md)]
119129

120130
## See also
121131

122-
* [Learn more about Visual Studio workloads](https://visualstudio.microsoft.com/vs/visual-studio-workloads/)
123132
* [List of Visual Studio workload & component IDs](workload-and-component-ids.md)
124133
* [Update Visual Studio](update-visual-studio.md)
125134
* [Update a network-based installation of Visual Studio](update-a-network-installation-of-visual-studio.md)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> [!NOTE]
2+
> You can also search for templates by typing the name of the Office product in the Search text box at the top of the **Create a New Project** dialog. For example, typing **Excel** will show you all of the project templates for Excel.
3+
You can also filter the list of templates to show only the templates for Office by selecting **Office** in the Project type dropdown box. For more information see [Create a new project in Visual Studio](../../ide/create-new-project.md).

docs/vsto/walkthrough-creating-your-first-document-level-customization-for-excel.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ms.workload:
1616
- "office"
1717
---
1818
# Walkthrough: Create your first document-level customization for Excel
19+
1920
This introductory walkthrough shows you how to create a document-level customization for Microsoft Office Excel. The features that you create in this kind of solution are available only when a specific workbook is open. You cannot use a document-level customization to make application-wide changes, for example, displaying a new Ribbon tab when any workbook is open.
2021

2122
[!INCLUDE[appliesto_xlalldoc](../vsto/includes/appliesto-xlalldoc-md.md)]
@@ -35,6 +36,7 @@ ms.workload:
3536
[!INCLUDE[note_settings_general](../sharepoint/includes/note-settings-general-md.md)]
3637

3738
## Prerequisites
39+
3840
You need the following components to complete this walkthrough:
3941

4042
- [!INCLUDE[vsto_vsprereq](../vsto/includes/vsto-vsprereq-md.md)]
@@ -48,21 +50,30 @@ ms.workload:
4850
1. Start [!INCLUDE[vsprvs](../sharepoint/includes/vsprvs-md.md)].
4951

5052
2. On the **File** menu, point to **New**, and then click **Project**.
51-
53+
::: moniker range="vs-2017"
5254
3. In the templates pane, expand **Visual C#** or **Visual Basic**, and then expand **Office/SharePoint**.
5355

54-
4. Under the expanded **Office/SharePoint** node, select the **Office Add-ins** node.
56+
4. Under the expanded **Office/SharePoint** node, select the **VSTO Add-ins** node.
5557

56-
5. In the list of project templates, choose an Excel VSTO Add-in project.
58+
5. In the list of project templates, choose an Excel VSTO Workbook project.
5759

5860
6. In the **Name** box, type **FirstWorkbookCustomization**.
5961

6062
7. Click **OK**.
6163

62-
The **Visual Studio Tools for Office Project Wizard** opens.
64+
8. Select **Create a new document** from the **Visual Studio Tools for Office Project Wizard**, and click **OK**.
65+
::: moniker-end
66+
::: moniker range=">=vs-2019"
67+
3. On the **Create a New Project** dialog select the **Excel VSTO Workbook** project.
6368

64-
8. Select **Create a new document**, and click **OK**.
69+
[!INCLUDE[new-project-dialog-search](../vsto/includes/new-project-dialog-search-md.md)]
6570

71+
4. Click **Next**.
72+
73+
5. Type **FirstWorkbookCustomization** in the **Name** box on the **Configure your new project** dialog and click **Create**.
74+
75+
6. Select **Create a new document** from the **Visual Studio Tools for Office Project Wizard**, and click **OK**.
76+
::: moniker-end
6677
- [!INCLUDE[vsprvs](../sharepoint/includes/vsprvs-md.md)] creates the **FirstWorkbookCustomization** project, and adds the following files to the project.
6778

6879
- *FirstWorkbookCustomization*.xlsx - Represents the Excel workbook in the project. Contains all the worksheets and charts.
@@ -78,6 +89,7 @@ ms.workload:
7889
The Sheet1 code file is opened automatically in the designer.
7990

8091
## Close and reopen worksheets in the designer
92+
8193
If you deliberately or accidentally close a workbook or a worksheet in the designer while you are developing your project, you can reopen it.
8294

8395
### To close and reopen a worksheet in the designer
@@ -91,6 +103,7 @@ ms.workload:
91103
In **Solution Explorer**, double-click the **Sheet1** code file.
92104

93105
## Add text to a worksheet in the designer
106+
94107
You can design the user interface (UI) of your customization by modifying the worksheet that is open in the designer. For example, you can add text to cells, apply formulas, or add Excel controls. For more information about how to use the designer, see [Office projects in the Visual Studio environment](../vsto/office-projects-in-the-visual-studio-environment.md).
95108

96109
### To add text to a worksheet by using the designer
@@ -103,6 +116,7 @@ ms.workload:
103116
> If you add this line of text to cell **A2**, it will be overwritten by other code in this example.
104117
105118
## Add text to a worksheet programmatically
119+
106120
Next, add code to the Sheet1 code file. The new code uses the object model of Excel to add a second line of text to the workbook. By default, the Sheet1 code file contains the following generated code:
107121

108122
- A partial definition of the `Sheet1` class, which represents the programming model of the worksheet and provides access to the object model of Excel. For more information, [Worksheet host item](../vsto/worksheet-host-item.md) and [Word object model overview](../vsto/word-object-model-overview.md). The remainder of the `Sheet1` class is defined in a hidden code file that you should not modify.
@@ -137,13 +151,15 @@ ms.workload:
137151
3. Close the workbook.
138152

139153
## Clean up the project
154+
140155
When you finish developing a project, you should remove the files in the build output folder and the security settings created by the build process.
141156

142157
### To clean up the completed project on your development computer
143158

144159
1. In Visual Studio, on the **Build** menu, click **Clean Solution**.
145160

146161
## Next steps
162+
147163
Now that you have created a basic document-level customization for Excel, you can learn more about how to develop customizations from these topics:
148164

149165
- General programming tasks that you can perform in document-level customizations: [Program document-level customizations](../vsto/programming-document-level-customizations.md).
@@ -161,6 +177,7 @@ ms.workload:
161177
- Deploying document-level customizations for Excel: [Deploy an Office solution](../vsto/deploying-an-office-solution.md).
162178

163179
## See also
180+
164181
- [Office solutions development overview (VSTO)](../vsto/office-solutions-development-overview-vsto.md)
165182
- [Excel solutions](../vsto/excel-solutions.md)
166183
- [Program document-level customizations](../vsto/programming-document-level-customizations.md)

docs/vsto/walkthrough-creating-your-first-document-level-customization-for-word.md

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ms.workload:
1616
- "office"
1717
---
1818
# Walkthrough: Create your first document-level customization for Word
19+
1920
This introductory walkthrough shows you how to create a document-level customization for Microsoft Office Word. The features that you create in this kind of solution are available only when a specific document is open. You cannot use a document-level customization to make application-wide changes, for example, displaying a new Ribbon tab when any document is open.
2021

2122
[!INCLUDE[appliesto_wdalldoc](../vsto/includes/appliesto-wdalldoc-md.md)]
@@ -35,6 +36,7 @@ ms.workload:
3536
[!INCLUDE[note_settings_general](../sharepoint/includes/note-settings-general-md.md)]
3637

3738
## Prerequisites
39+
3840
You need the following components to complete this walkthrough:
3941

4042
- [!INCLUDE[vsto_vsprereq](../vsto/includes/vsto-vsprereq-md.md)]
@@ -48,24 +50,34 @@ ms.workload:
4850
1. Start [!INCLUDE[vsprvs](../sharepoint/includes/vsprvs-md.md)].
4951

5052
2. On the **File** menu, point to **New**, and then click **Project**.
51-
53+
::: moniker range="vs-2017"
5254
3. In the templates pane, expand **Visual C#** or **Visual Basic**, and then expand **Office/SharePoint**.
5355

54-
4. Under the expanded **Office/SharePoint** node, select the **Office Add-ins** node.
56+
4. Under the expanded **Office/SharePoint** node, select the **VSTO Add-ins** node.
5557

56-
5. In the list of project templates, select a Word VSTO document project .
58+
5. In the list of project templates, select a Word VSTO document project.
5759

5860
6. In the **Name** box, type **FirstDocumentCustomization**.
5961

6062
7. Click **OK**.
6163

62-
The **Visual Studio Tools for Office Project Wizard** opens.
64+
8. Select **Create a new document** from the **Visual Studio Tools for Office Project Wizard**, and click **OK**.
65+
::: moniker-end
66+
::: moniker range=">=vs-2019"
67+
3. On the **Create a New Project** dialog select the **Word VSTO Document** project.
6368

64-
8. Select **Create a new document**, and click **OK**.
69+
[!INCLUDE[new-project-dialog-search](../vsto/includes/new-project-dialog-search-md.md)]
6570

66-
[!INCLUDE[vsprvs](../sharepoint/includes/vsprvs-md.md)] creates the **FirstDocumentCustomization** project, and adds the **FirstDocumentCustomization** document and ThisDocument code file to the project. The **FirstDocumentCustomization** document is opened automatically in the designer.
71+
4. Click **Next**.
72+
73+
5. Type **FirstWorkbookCustomization** in the **Name** box on the **Configure your new project** dialog and click **Create**.
74+
75+
6. Select **Create a new document** from the **Visual Studio Tools for Office Project Wizard**, and click **OK**.
76+
::: moniker-end
77+
- [!INCLUDE[vsprvs](../sharepoint/includes/vsprvs-md.md)] creates the **FirstDocumentCustomization** project, and adds the **FirstDocumentCustomization** document and ThisDocument code file to the project. The **FirstDocumentCustomization** document is opened automatically in the designer.
6778

6879
## Close and reopen the document in the designer
80+
6981
If you deliberately or accidentally close the document in the designer while you are developing your project, you can reopen it.
7082

7183
### To close and reopen the document in the designer
@@ -79,6 +91,7 @@ ms.workload:
7991
In **Solution Explorer**, double-click the **ThisDocument** code file.
8092

8193
## Add text to the document in the designer
94+
8295
You can design the user interface (UI) of your customization by modifying the document that is open in the designer. For example, you can add text, tables, or Word controls. For more information about how to use the designer, see [Office projects in the Visual Studio environment](../vsto/office-projects-in-the-visual-studio-environment.md).
8396

8497
### To add text to your document by using the designer
@@ -88,6 +101,7 @@ ms.workload:
88101
**This text was added by using the designer.**
89102

90103
## Add text to the document programmatically
104+
91105
Next, add code to the ThisDocument code file. The new code uses the object model of Word to add a second paragraph of text to the document. By default, the ThisDocument code file contains the following generated code:
92106

93107
- A partial definition of the `ThisDocument` class, which represents the programming model of the document and provides access to the object model of Word. For more information, see [Document host item](../vsto/document-host-item.md) and [Word object model overview](../vsto/word-object-model-overview.md). The remainder of the `ThisDocument` class is defined in a hidden code file that you should not modify.
@@ -125,13 +139,15 @@ ms.workload:
125139
3. Close the document.
126140

127141
## Clean up the project
142+
128143
When you finish developing a project, you should remove the files in the build output folder and the security settings created by the build process.
129144

130145
### To clean up the completed project on your development computer
131146

132147
1. In Visual Studio, on the **Build** menu, click **Clean Solution**.
133148

134149
## Next steps
150+
135151
Now that you have created a basic document-level customization for Word, you can learn more about how to develop customizations from these topics:
136152

137153
- General programming tasks that you can perform in document-level customizations: [Program document-level customizations](../vsto/programming-document-level-customizations.md).
@@ -149,6 +165,7 @@ ms.workload:
149165
- Deploying document-level customizations for Word: [Deploy an Office solution](../vsto/deploying-an-office-solution.md).
150166

151167
## See also
168+
152169
- [Office solutions development overview (VSTO)](../vsto/office-solutions-development-overview-vsto.md)
153170
- [Word solutions](../vsto/word-solutions.md)
154171
- [Program document-level customizations](../vsto/programming-document-level-customizations.md)

0 commit comments

Comments
 (0)