You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ide/finding-references.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Finding references in your code
3
3
description: Explore the Find All References command in Visual Studio to find references to particular code elements in your code, including by reference type.
4
-
ms.date: 04/10/2024
4
+
ms.date: 4/1/2025
5
5
ms.topic: conceptual
6
6
helpviewer_keywords:
7
7
- code editor, find all references
@@ -23,11 +23,17 @@ The results appear in a tool window named **\<element> references**, where *elem
23
23
- Remove any filters on the returned results by choosing the **Clear All Filters** button.
24
24
- Change how returned items are grouped by choosing a setting in the **Group by:** drop-down list box.
25
25
- Keep the current search results window by choosing the **Keep Results** button. When you choose this button, the current search results stay in this window, and new search results appear in a new tool window.
26
+
-**List View** toggles between the treeview and a plaintext list. Some functionality is disabled in list view mode.
26
27
- Search for strings within the search results by entering text in the **Search Find All References** text box.
27
28
28
29
You can also hover the mouse over any search result to see the reference in the context of the surrounding code.
29
30
31
+
:::moniker range="vs-2019"
30
32

33
+
:::moniker-end
34
+
:::moniker range="vs-2022"
35
+

36
+
:::moniker-end
31
37
32
38
## Navigate to references
33
39
@@ -43,12 +49,18 @@ By default, references are grouped by project, then by definition. However, you
43
49
44
50
**Definition** and **Project** are the two default groupings used, but you can add others by choosing the **Grouping** command on the selected item's right-click or context menu. Adding more groupings can be helpful if your solution has numerous files and paths.
45
51
52
+
Grouping is not available in **List View** mode.
53
+
46
54
## Filter by reference type in .NET
47
55
48
-
In C# or Visual Basic, the **Find References** window has a **Kind** column where it lists what type of reference it found. You can use this column to filter by reference type. Select the filter icon that appears when you hover over the column header. You can filter references by Read, Write, Reference, Name, Namespace, and Type.
56
+
In C# or Visual Basic, the **Find References** window has a **Kind** column where it lists what type of reference it found. You can use this column to filter by reference type. Select the filter icon that appears when you hover over the column header. You can filter references by Read, Write, Reference, Name, Namespace, and Type, but the filter only shows the kinds that are relevant in the current set of results.
49
57
58
+
:::moniker range="vs-2019"
50
59

51
-
60
+
:::moniker-end
61
+
:::moniker range=">=vs-2022"
62
+

63
+
:::moniker-end
52
64
After you apply a filter or a filter set, you can easily remove it by using the **Clear All Filters** button.
Copy file name to clipboardExpand all lines: docs/ide/how-to-create-multi-project-templates.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Create multi-project templates
3
3
description: Create multi-project templates in Visual Studio that can act as containers for many projects at the same time and containers for projects of different languages.
Copy file name to clipboardExpand all lines: docs/ide/intellicode-visual-studio.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: IntelliCode for Visual Studio
3
3
titleSuffix: ""
4
4
description: Read an overview of IntelliCode for Visual Studio. Understand preview features, supported languages, prerequisites, troubleshooting issues, and telemetry.
Copy file name to clipboardExpand all lines: docs/msbuild/common-msbuild-project-items.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Common MSBuild Project Items
3
3
description: Learn about common MSBuild project items. Items are named references to one or more files, and have metadata like file names, paths, and version numbers.
4
-
ms.date: 10/29/2020
4
+
ms.date: 4/2/2025
5
5
ms.topic: reference
6
6
dev_langs:
7
7
- VB
@@ -18,7 +18,7 @@ ms.subservice: msbuild
18
18
19
19
In MSBuild, an item is a named reference to one or more files. Items contain metadata such as file names, paths, and version numbers. All project types in Visual Studio have several items in common. These items are defined in the file *Microsoft.Build.CommonTypes.xsd*.
20
20
21
-
This article lists all the common project items.
21
+
This article lists all the common project items defined in MSBuild itself. Items and properties provided by the .NET SDK are documented at [MSBuild reference for Microsoft.Net.Sdk](/dotnet/core/project-sdk/msbuild-props).
Copy file name to clipboardExpand all lines: docs/msbuild/common-msbuild-project-properties.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,6 +132,8 @@ ms.subservice: msbuild
132
132
133
133
The following table lists frequently used properties that are defined in the Visual Studio project files or included in *.targets* files that MSBuild provides.
134
134
135
+
Properties provided by the .NET SDK are documented at [MSBuild reference for Microsoft.Net.Sdk](/dotnet/core/project-sdk/msbuild-props).
136
+
135
137
Project files in Visual Studio (*.csproj*, *.vbproj*, *.vcxproj*, and others) contain MSBuild XML code that runs when you build a project by using the IDE. Projects typically import one or more *.targets* files to define their build process. For more information, see [MSBuild .targets files](../msbuild/msbuild-dot-targets-files.md).
136
138
137
139
When setting property values, keep in mind that common properties may be set, reset, or used in a number of imported files. Therefore, it matters where you set a property--in your project file, in *Directory.Build.props*, or in another imported file. If you're setting a property somewhere and not getting the expected result, consider where and how the property is changed or used in all the files imported by your project, including imports that are added implicitly when you're using the `Sdk` attribute. See [Choose between adding properties to a .props or .targets file](customize-your-build.md#choose-between-adding-properties-to-a-props-or-targets-file). Preprocessing can help with this (see the `/preprocess` or `/pp` command-line option at [MSBuild command-line reference](./msbuild-command-line-reference.md)).
0 commit comments