Skip to content

Commit 7cc5409

Browse files
Learn Build Service GitHub AppLearn Build Service GitHub App
authored andcommitted
Merging changes synced from https://github.com/MicrosoftDocs/visualstudio-docs-pr (branch live)
2 parents ad8d76d + d0dfadd commit 7cc5409

20 files changed

+123
-80
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/ide/reference/error-list-window.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.author: ghogen
1313
manager: jmartens
1414
ms.technology: vs-ide-general
1515
---
16-
# Error List Window
16+
# Error List window
1717

1818
[!INCLUDE [Visual Studio](~/includes/applies-to-version/vs-windows-only.md)]
1919

@@ -69,26 +69,30 @@ You can copy the error list and save it to a file. Select the errors you want to
6969

7070
## UI Element List
7171

72-
Severity
72+
**Severity**
7373

7474
Displays the different types of **Error List** entry (**Error**, **Message**, **Warning**, **Warning (active)**, **Warning (inactive)**.
7575

76-
Code
76+
**Code**
7777

7878
Displays the error code.
7979

80-
Description
80+
**Description**
8181

8282
Displays the text of the entry.
8383

84-
Project
84+
**Project**
8585

8686
Displays the name of the current project.
8787

88-
File
88+
**File**
8989

9090
Displays the file name.
9191

92-
Line
92+
**Line**
9393

9494
Displays the line where the problem occurs.
95+
96+
**Details**
97+
98+
Displays a clickable icon to open the [Problem Details window](../../ide/reference/problem-details-window.md) if this entry has additional details.
Loading
Loading
Loading

docs/ide/reference/output-window.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ In C++, you can create custom build steps and build events whose warnings and er
6767

6868
If you use autoscrolling in the **Output** window and then navigate by using the mouse or arrow keys, autoscrolling stops. To resume autoscrolling, press **Ctrl**+**End**.
6969

70+
## Structured Diagnostics
71+
72+
C++ MSBuild projects might emit structured diagnostics. The level of indentation of a diagnostic in the **Output** window represents the nested structure of the information. Enable or disable indentation with the **Project** > **Properties** > **Advanced** > **Enable MSVC Structured Output** option. You can affect several projects by creating a [Directory.Build.props](/visualstudio/msbuild/customize-by-directory) file with the **UseStructuredOutput** property defined to true or false.
73+
7074
## See also
7175

7276
- [Diagnostic messages in the Output window](../../debugger/diagnostic-messages-in-the-output-window.md)
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
title: Problem Details Window
3+
description: Learn about the Problem Details window and how to use it to navigate structured diagnostics.
4+
ms.date: 10/24/2023
5+
ms.topic: reference
6+
helpviewer_keywords:
7+
- Problem Details window
8+
- build errors
9+
- Error List window../
10+
author: tartanllama
11+
ms.author: sybrand
12+
manager: mluparu
13+
ms.technology: vs-ide-general
14+
---
15+
16+
# Problem Details window
17+
18+
[!INCLUDE [Visual Studio](~/includes/applies-to-version/vs-windows-only.md)]
19+
20+
The **Problem Details** window shows structured diagnostics issued by the MSVC compiler or [code analysis for C/C++](/cpp/code-quality/code-analysis-for-c-cpp-overview).
21+
22+
Select entries in the [**Error List** window](error-list-window.md) that show an icon in the **Details** column to open the **Problem Details** window. The **Problem Details** window shows the structured diagnostics for the selected entry.
23+
24+
:::image type="complex" source="media/error-list-details-column.png" alt-text="Screenshot of the Visual Studio Error List with one entry that has an icon in its details column.":::
25+
Screenshot of the Visual Studio Error List. It shows a table with a single row. The row represents a compiler error and contains the error code C2665, the description "pet: no overloaded function could convert all the argument types", and an icon of a square with the corner magnified in the column named Details. This icon is highlighted.
26+
:::image-end:::
27+
28+
Two scenarios produce these diagnostics:
29+
30+
- C++ compilations using [**MSBuild**](/cpp/build/creating-and-managing-visual-cpp-projects) and the MSVC compiler may emit structured diagnostics.
31+
- Code analysis warnings that support [**Key Event**](https://devblogs.microsoft.com/cppblog/microsoft-cpp-code-analysis-warnings-with-key-events) data emit structured diagnostics.
32+
33+
Open the **Problem Details** window by doing one of the following:
34+
35+
- While the entry is highlighted, double-click it or press **Enter**. Disable this behavior with **Tools** > **Options** > **Text Editor** > **C/C++** > **Advanced** > **Show Problem Details on Double Click**.
36+
- Select the icon in the **Details** column.
37+
- Open the shortcut menu for the entry and select the **Open Problem Details** option.
38+
39+
By default, the **Problem Details** window opens in the same location as the **Error List** window. Change where the **Problem Details** window opens by moving it to the desired position.
40+
41+
The **Problem Details** window displays structured information that may be nested. When the window opens, all entries that have nested children begin collapsed.
42+
43+
:::image type="complex" source="media/problem-details-collapsed.png" alt-text="Screenshot of the Visual Studio Problem Details window with all children collapsed.":::
44+
Screenshot of the Visual Studio Problem Details window. There is a header showing the same error code and description as the Error List entry from before. There is also a selectable link with the text cppcon-diag.cpp (Line 23). Below this header there are entries explaining that the potential overloads are void pet(cat), void pet(dog), or void pet(_T0). The final entry states "while trying to match the argument list (lizard)." To the right of each line is grey text showing the file and line numbers for each entry. All of them belong to cppcon-diag.cpp and the line numbers are 7, 6, 18, and 23, respectively. To the left of the first three entries are small hollow arrows pointing right that signify that these entries can be expanded, but are currently not.
45+
:::image-end:::
46+
47+
Expand an entry to view its children by either selecting the arrow at the left-hand side of an entry, or by pressing **Right** with the entry highlighted.
48+
49+
:::image type="complex" source="media/problem-details-expanded.png" alt-text="Screenshot of the Visual Studio Problem Details window with some children expanded.":::
50+
Screenshot of the Visual Studio Problem Details window. The contents are mostly the same as the previous screenshot, however some of the entries are expanded so their child entries are visible. The first entry is expanded. There is a nested entry with the text "void pet(cat) cannot convert argument 1 from lizard to cat." This entry is indented and can be expanded. The second line from before is expanded, revealing an unexpanded entry reading "void pet(dog) cannot convert argument 1 from lizard to dog." The third entry is expanded, revealing an entry reading "the associated constraints are not satisfied." This entry has an expanded child reading "the concept pettable lizard evaluated to false." This entry has two children. The first is unexpanded and reads "the concept has_member_pet lizard evaluated to false." The second is expanded and reads "the concept has_default_pet lizard evaluated to false." This second child has two children, neither of which is expandable. They read "is_pettable is not a member of lizard" and "see declaration of lizard."
51+
:::image-end:::
52+
53+
Enable or disable structured diagnostics with the **Project** > **Properties** > **Advanced** > **Enable MSVC Structured Output** option. You can affect several projects by creating a [Directory.Build.props](/visualstudio/msbuild/customize-by-directory) file with the **UseStructuredOutput** property defined to true or false.

docs/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,8 @@
991991
href: ide/reference/xaml-designer.md
992992
- name: Output window
993993
href: ide/reference/output-window.md
994+
- name: Problem Details window
995+
href: ide/reference/problem-details-window.md
994996
- name: Project Designer & project properties
995997
items:
996998
- name: Project Designer reference

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)

0 commit comments

Comments
 (0)