Skip to content

Commit d0dfadd

Browse files
Merge pull request #11866 from Mikejo5000/mikejo-br21
Consolidate two articles on configuring VSTO
2 parents f1b2a02 + adc3bff commit d0dfadd

13 files changed

+53
-73
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1875,6 +1875,11 @@
18751875
"redirect_url": "/troubleshoot/developer/visualstudio/project-build/troubleshoot-resource-editor-errors",
18761876
"redirect_document_id": false
18771877
},
1878+
{
1879+
"source_path": "docs/vsto/configuring-a-computer-to-develop-office-solutions.md",
1880+
"redirect_url": "/visualstudio/vsto/how-to-configure-a-computer-to-develop-office-solutions",
1881+
"redirect_document_id": false
1882+
},
18781883
{
18791884
"source_path": "docs/vsto/troubleshooting-office-solution-deployment.md",
18801885
"redirect_url": "/troubleshoot/developer/visualstudio/tools-utilities/troubleshooting-office-solution-deployment",

docs/vsto/configuring-a-computer-to-develop-office-solutions.md

Lines changed: 0 additions & 51 deletions
This file was deleted.

docs/vsto/features-available-by-office-application-and-project-type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ms.technology: office-development
3333
Not all applications can use every project type. For example, document-level projects are available only for Microsoft Office Word and Microsoft Office Excel. Similarly, some features are available only for certain types of projects or applications. For example, the actions pane is available only in document-level projects, and Ribbon extensions are available only for some applications. For more information about the different project types, see [Office solutions development overview (VSTO)](../vsto/office-solutions-development-overview-vsto.md).
3434

3535
> [!NOTE]
36-
> Office project templates are available only in some editions of Visual Studio. For more information, see [Configure a computer to develop Office solutions](../vsto/configuring-a-computer-to-develop-office-solutions.md).
36+
> Office project templates are available only in some editions of Visual Studio. For more information, see [Configure a computer to develop Office solutions](../vsto/how-to-configure-a-computer-to-develop-office-solutions.md).
3737
3838
## Project types available for different Microsoft Office applications
3939
The following table shows the applications that you can use with each project type.

docs/vsto/getting-started-office-development-in-visual-studio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ms.technology: office-development
3434

3535
Describes which applications and projects are required to use Office development features such as Ribbon extensibility, custom task panes, actions panes, and form regions.
3636

37-
- [Configure a computer to develop Office solutions](../vsto/configuring-a-computer-to-develop-office-solutions.md)
37+
- [Configure a computer to develop Office solutions](../vsto/how-to-configure-a-computer-to-develop-office-solutions.md)
3838

3939
Provides information and steps for installing the Office development tools, the runtime that enables Office solutions to run on end-user computers, and the Office primary interop assemblies.
4040

docs/vsto/how-to-configure-a-computer-to-develop-office-solutions.md

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,48 @@ ms.technology: office-development
1818
# Configure a computer to develop Office solutions
1919

2020
[!INCLUDE [Visual Studio](~/includes/applies-to-version/vs-windows-only.md)]
21-
To configure a development computer so that you can use the Microsoft Office developer tools in Visual Studio, follow the instructions in this topic. You must have administrative privileges on the development computer to perform these steps.
2221

23-
### To configure the development computer
22+
To configure a development computer so that you can use the Microsoft Office developer tools in Visual Studio, follow the instructions in this topic. You must have administrative privileges on the development computer to perform these steps.
2423

25-
1. Install a version of Visual Studio that includes the Office developer tools. The Office developer tools are installed by default. If you customize the Visual Studio installation by selecting which features to install, make sure that **Microsoft Office Developer Tools** is selected during setup. For more information about the versions of Visual Studio that include the Office developer tools, see [Configure a computer to develop Office solutions](../vsto/configuring-a-computer-to-develop-office-solutions.md).
24+
## Requirements
2625

27-
2. Install a version of Office that is supported by the Office developer tools in Visual Studio. For more information, see [Configure a computer to develop Office solutions](../vsto/configuring-a-computer-to-develop-office-solutions.md).
26+
The following versions of Visual Studio, the .NET Framework, and Microsoft Office are supported.
2827

29-
Make sure that you also install the PIAs for the version of Office that you install. The PIAs are installed with Office by default. If you modify Office setup, make sure that the **.NET Programmability Support** feature is selected for the applications you want to target.
28+
|Software|Supported versions|
29+
|--------------|------------------------|
30+
|Visual Studio 2017| Any edition with the **Office/SharePoint development** workload.|
31+
|.NET Framework|- The .NET Framework 4 or later.|
32+
|Microsoft Office|<ul><li>Any suite edition of Office including Microsoft 365 apps for enterprise.</li><li>Any of the following standalone applications:<br /><br /> <ul><li>Excel</li><li>InfoPath (Office 2013 and Office 2010 only)</li><li>Outlook</li><li>PowerPoint</li><li>Project</li><li>Visio</li><li>Word</li></ul></li></ul><br /> Visual Basic for Applications (VBA) must be installed as part of Office. **Important:** Click-to-Run versions of Office 2010 applications are not supported.|
3033

31-
3. If you have an English version of Visual Studio but use non-English settings for Windows, you can install the Visual Studio Tools for Office runtime language pack to see Visual Studio Tools for Office runtime messages in the same language as Windows. Non-English versions of Visual Studio automatically install the language pack.
34+
## Configure the development computer
35+
36+
1. Install a version of Visual Studio that includes the Office developer tools. The Office developer tools are installed by default. If you customize the Visual Studio installation by selecting which features to install, make sure that **Microsoft Office Developer Tools** is selected during setup.
37+
38+
2. Install a version of Office that is supported by the Office developer tools in Visual Studio.
39+
40+
Make sure that you also install the PIAs for the version of Office that you install. The PIAs are installed with Office by default. If you modify Office setup, make sure that the **.NET Programmability Support** feature is selected for the applications you want to target.
41+
42+
3. If you have an English version of Visual Studio but use non-English settings for Windows, you can install the [Visual Studio Tools for Office runtime language pack](https://www.microsoft.com/en-us/download/details.aspx?id=105672) to see Visual Studio Tools for Office runtime messages in the same language as Windows. Non-English versions of Visual Studio automatically install the language pack. The language pack is available from the [Microsoft download center](https://www.microsoft.com/en-us/download/).
43+
44+
## If project templates don't appear or they don't work in Visual Studio
45+
46+
If you install a supported version of Visual Studio, the .NET Framework, and Microsoft Office, but Office project templates either don't appear in the Visual Studio **New Project** dialog box, or you receive an error when you try to use one, check the following:
47+
48+
- Ensure that you have the Microsoft Office developer tools installed on your computer.
49+
50+
Office developer tools are an optional component of Visual Studio, but they are installed automatically along with Visual Studio. If you customize the Visual Studio installation by specifying which features to install, make sure that you choose **Microsoft Office Developer Tools** during setup to install the tools.
51+
52+
To make sure that these tools are installed, start the Visual Studio setup program, and choose the **Modify** button. Select the **Microsoft Office Developer Tools** check box, and then choose the **Update** button.
53+
54+
- Make sure that you're not running a version of Office that was delivered by Click-to-Run. See [How to: Verify whether Outlook is a Click-to-Run application on a computer](/previous-versions/office/developer/office-2010/ff864733(v=office.14)).
55+
56+
- Ensure that you're running only one version of Microsoft Office.
57+
58+
If you continue to experience problems, see [Additional support for errors in Office solutions](../vsto/additional-support-for-errors-in-office-solutions.md).
3259

3360
## See also
3461

3562
- [Get started &#40;Office development in Visual Studio&#41;](../vsto/getting-started-office-development-in-visual-studio.md)
3663
- [How to: Install the Visual Studio Tools for Office runtime redistributable](../vsto/how-to-install-the-visual-studio-tools-for-office-runtime-redistributable.md)
3764
- [How to: Install Office primary interop assemblies](../vsto/how-to-install-office-primary-interop-assemblies.md)
65+
- [Features available by Office application and project type](../vsto/features-available-by-office-application-and-project-type.md)

docs/vsto/how-to-install-the-visual-studio-tools-for-office-runtime-redistributable.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ ms.technology: office-development
5151
## See also
5252

5353
- [Get started &#40;Office development in Visual Studio&#41;](../vsto/getting-started-office-development-in-visual-studio.md)
54-
- [Configure a computer to develop Office solutions](../vsto/configuring-a-computer-to-develop-office-solutions.md)
55-
- [How to: Configure a computer to develop Office solutions](../vsto/how-to-configure-a-computer-to-develop-office-solutions.md)
54+
- [Configure a computer to develop Office solutions](../vsto/how-to-configure-a-computer-to-develop-office-solutions.md)
5655
- [How to: Install Office primary interop assemblies](../vsto/how-to-install-office-primary-interop-assemblies.md)
5756
- [Manage documents on a server by using the ServerDocument class](../vsto/managing-documents-on-a-server-by-using-the-serverdocument-class.md)
5857
- [Deploy an Office solution](../vsto/deploying-an-office-solution.md)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
An edition of Visual Studio that includes the Microsoft Office developer tools. For more information, see [Configure a computer to develop Office solutions](../../vsto/configuring-a-computer-to-develop-office-solutions.md).
1+
An edition of Visual Studio that includes the Microsoft Office developer tools. For more information, see [Configure a computer to develop Office solutions](../../vsto/how-to-configure-a-computer-to-develop-office-solutions.md).

docs/vsto/microsoft-office-is-not-installed-on-this-computer.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ ms.technology: office-development
1616
# Microsoft Office is not installed on the computer
1717

1818
[!INCLUDE [Visual Studio](~/includes/applies-to-version/vs-windows-only.md)]
19-
Visual Studio cannot find the Microsoft Office application that corresponds to the project type. If you are developing a VSTO Add-in project, it means that you cannot debug or run the project. If you are trying to create a document-level project, this means that you cannot create the project.
19+
Visual Studio can't find the Microsoft Office application that corresponds to the project type. If you're developing a VSTO Add-in project, it means that you can't debug or run the project. If you're trying to create a document-level project, this message means that you can't create the project.
2020

2121
## To correct the error
2222

23-
1. Install the Microsoft Office application associated with the project type, including the primary interop assemblies. For more information about supported versions of Microsoft Office, see [Configure a computer to develop Office solutions](../vsto/configuring-a-computer-to-develop-office-solutions.md).
23+
1. Install the Microsoft Office application associated with the project type, including the primary interop assemblies. For more information about supported versions of Microsoft Office, see [Configure a computer to develop Office solutions](../vsto/how-to-configure-a-computer-to-develop-office-solutions.md).
2424

2525
## See also
26+
2627
- [Configure a computer to develop Office solutions](../vsto/configuring-a-computer-to-develop-office-solutions.md)
2728
- [How to: Configure a computer to develop Office solutions](../vsto/how-to-configure-a-computer-to-develop-office-solutions.md)

docs/vsto/office-primary-interop-assemblies.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ For Visual Studio 2017 and later, these copies of the PIAs are installed to foll
6767
6868
### Primary interop assemblies in the global assembly cache
6969

70-
To perform certain development tasks, the PIAs must be installed and registered in the global assembly cache on the development computer. Typically, the PIAs are installed automatically when you install Office on the development computer. For more information, see [Configure a computer to develop Office solutions](../vsto/configuring-a-computer-to-develop-office-solutions.md).
70+
To perform certain development tasks, the PIAs must be installed and registered in the global assembly cache on the development computer. Typically, the PIAs are installed automatically when you install Office on the development computer. For more information, see [Configure a computer to develop Office solutions](../vsto/how-to-configure-a-computer-to-develop-office-solutions.md).
7171

7272
The Office PIAs aren't required on end-user computers to run Office solutions. For more information, see [Design and create Office solutions](../vsto/designing-and-creating-office-solutions.md).
7373

@@ -88,7 +88,7 @@ If you've installed and registered the PIAs in the global assembly cache, these
8888

8989
## Primary interop assemblies for Microsoft Office applications
9090

91-
The following table lists the primary interop assemblies that are available for Office 2016 , Office 2013 and Office 2010.
91+
The following table lists the primary interop assemblies that are available for Office 2016, Office 2013, and Office 2010.
9292

9393
<br/>
9494

@@ -108,7 +108,7 @@ The following table lists the primary interop assemblies that are available for
108108
|Microsoft Publisher 14.0 Object Library<br /><br /> Microsoft Publisher 15.0 Object Library|Microsoft.Office.Interop.Publisher.dll|
109109
|Microsoft SharePoint Designer 14.0 Web Object Reference Library|Microsoft.Office.Interop.SharePointDesigner.dll|
110110
|Microsoft SharePoint Designer 14.0 Page Object Reference Library|Microsoft.Office.Interop.SharePointDesignerPage.dll|
111-
|Microsoft Smart Tags 2.0 Type Library **Note:** Smart tags are deprecated in Excel 2010 and Word 2010 .|Microsoft.Office.Interop.SmartTag.dll|
111+
|Microsoft Smart Tags 2.0 Type Library **Note:** Smart tags are deprecated in Excel 2010 and Word 2010.|Microsoft.Office.Interop.SmartTag.dll|
112112
|Microsoft Visio 14.0 Type Library<br /><br /> Microsoft Visio 15.0 Type Library|Microsoft.Office.Interop.Visio.dll|
113113
|Microsoft Visio 14.0 Save As Web Type Library<br /><br /> Microsoft Visio 15.0 Save As Web Type Library|Microsoft.Office.Interop.Visio.SaveAsWeb.dll|
114114
|Microsoft Visio 14.0 Drawing Control Type Library<br /><br /> Microsoft Visio 15.0 Drawing Control Type Library|Microsoft.Office.Interop.VisOcx.dll|
@@ -119,7 +119,7 @@ The following table lists the primary interop assemblies that are available for
119119

120120
When you install and register the Office PIAs in the global assembly cache (either with Office or by installing the redistributable package for the PIAs), the binding redirect assemblies are also installed only in the global assembly cache. These assemblies ensure that the correct version of the primary interop assemblies is loaded at run time.
121121

122-
For example, when a solution that references a Office 2010 assembly runs on a computer that has the Office 2013 version of the same primary interop assembly, the binding redirect assembly instructs the .NET Framework runtime to load the Office 2013 version of the primary interop assembly.
122+
For example, when a solution that references an Office 2010 assembly runs on a computer that has the Office 2013 version of the same primary interop assembly, the binding redirect assembly instructs the .NET Framework runtime to load the Office 2013 version of the primary interop assembly.
123123

124124
For more information, see [How to: Enable and disable automatic binding redirection](/dotnet/framework/configure-apps/how-to-enable-and-disable-automatic-binding-redirection).
125125

0 commit comments

Comments
 (0)