Skip to content

Commit d881b57

Browse files
Mikejo5000denrea
andauthored
Update refactoring article on removing unused references and overview for XAML Tools (#14209)
* Update refactoring article on removing references * edits * Update XAML overview * PRMerger edits * Update remove-unused-references.md --------- Co-authored-by: Dennis Rea <[email protected]>
1 parent ef19291 commit d881b57

File tree

4 files changed

+21
-10
lines changed

4 files changed

+21
-10
lines changed
16.8 KB
Loading
11.6 KB
Loading

docs/ide/reference/remove-unused-references.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Remove unused references
33
description: Learn how to clean up project references and NuGet packages that have no usage with the new Remove Unused References command.
4-
ms.date: 3/6/2024
4+
ms.date: 8/15/2025
55
ms.topic: reference
66
author: mikadumont
77
ms.author: midumont
@@ -31,20 +31,30 @@ This refactoring applies to:
3131

3232
1. Verify that the option is enabled.
3333

34-
Select **Tools** > **Options** > **Text Editor** > **C#** > **Advanced**, and enable **Show "Removed Unused References" command in Solution Explorer (experimental)**.
34+
Select **Tools** > **Options** > **Text Editor** > **C#** > **Advanced**, and enable **Show "Removed Unused References" command in Solution Explorer**.
3535

36-
1. Right click on a project name or dependencies node in Solution Explorer.
36+
1. In Solution Explorer, right click on a project name or the **Dependencies** node.
3737

3838
1. Select **Remove Unused References**.
3939

40-
![Remove Unused References command](media/remove-unused-references-command.png)
40+
::: moniker range=">= vs-2022"
41+
![Screenshot of Remove Unused References command.](media/vs-2022/remove-unused-references-command.png)
42+
::: moniker-end
43+
::: moniker range="vs-2019"
44+
![Screenshot of Remove Unused References command.](media/remove-unused-references-command.png)
45+
::: moniker-end
4146

42-
1. The **Remove Unused References** dialog will open displaying references that have no usage in source code. Unused references will be pre-selected for removal with an option to preserve references by selecting `Keep` from the Action drop down.
47+
1. The **Remove Unused References** dialog opens, displaying references that have no usage in source code. Unused references are pre-selected for removal with an option to preserve references by selecting `Keep` from the Action drop down.
4348

44-
![Remove Unused References dialog](media/remove-unused-references-dialog.png)
49+
::: moniker range=">= vs-2022"
50+
![Screenshot of Remove Unused References dialog.](media/vs-2022/remove-unused-references-dialog.png)
51+
::: moniker-end
52+
::: moniker range="vs-2019"
53+
![Screenshot of Remove Unused References dialog.](media/remove-unused-references-dialog.png)
54+
::: moniker-end
4555

4656
1. Click `Apply` to remove selected references.
4757

4858
## See also
4959

50-
- [Refactoring](../refactoring-in-visual-studio.md)
60+
- [Refactoring](../refactoring-in-visual-studio.md)

docs/xaml-tools/xaml-overview.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Use the XAML code editor and XAML Designer tools
33
description: Get basic information about the Extensible Application Markup Language (XAML) and how to work with the XAML code editor and XAML Designer tools in Visual Studio.
4-
ms.date: 06/23/2020
4+
ms.date: 08/15/2025
55
ms.topic: overview
66
author: maddymontaquila
77
ms.author: maleger
@@ -13,9 +13,10 @@ ms.subservice: xaml-tools
1313
Extensible Application Markup Language (XAML) is a declarative language that's based on XML. XAML is used extensively in the following types of applications to build user interfaces:
1414

1515
- [Windows Presentation Foundation (WPF) apps](/dotnet/framework/wpf/advanced/xaml-in-wpf)
16-
- [Universal Windows Platform (UWP) apps](/windows/uwp/xaml-platform/xaml-overview)
17-
- [Xamarin.Forms apps](/xamarin/xamarin-forms/xaml/)
1816
- [.NET MAUI apps](/dotnet/maui/xaml)
17+
- [WinUI](/windows/apps/winui/winui3/)
18+
- [Universal Windows Platform (UWP) apps](/windows/uwp/xaml-platform/xaml-overview)
19+
- [Xamarin.Forms apps](/xamarin/xamarin-forms/xaml/) (unsupported)
1920

2021
The following XAML code defines a simple button control.
2122

0 commit comments

Comments
 (0)