PreviewLogo Visual Studio 2022 version 17.1 Preview Release Notes


Tip

Watch the recordings of the Visual Studio 2022 launch event to learn about what's new, hear tips & tricks, and download free digital swag.

Developer Community | Visual Studio 2022 Roadmap | System Requirements | Compatibility | Distributable Code | License Terms | Blogs | Latest Release Known Issues | Whats New in Visual Studio Docs


Click a button to download the latest version of Visual Studio 2022. For instructions on installing and updating Visual Studio 2022, see Update Visual Studio 2022 to the most recent release. Also, see instructions on how to install offline.

Download Community Button Download Professional Button Download Enterprise Button

Visit the visualstudio.microsoft.com/downloads page to download other Visual Studio 2022 products.

Important

Preview Channel is not "go-live" and not intended for use on production computers or for creating production code. For more information, see Visual Studio Product Lifecycle and Servicing.

Download Community Preview Button Download Professional Preview Button Download Enterprise Preview Button


What's New in Visual Studio 2022 version 17.1 Preview

Visual Studio 2022 version 17.1 Preview Releases

Visual Studio 2022 Blog

The Visual Studio 2022 Blog is the official source of product insight from the Visual Studio Engineering Team. You can find in-depth information about the Visual Studio 2022 releases in the following posts:


17.1.0-pre.1.0 Visual Studio 2022 version 17.1 Preview 1.1 NewReleaseButton

released November 16, 2021

Issues addressed in this release of 17.1 Preview 1.1

  • Under some circumstances the publish of a worker service to an Azure Container Apps would silently fail.
  • Fixed an issue where Visual Studio failed to start on Windows 7 machines.

17.1.0-pre.1.0 Visual Studio 2022 version 17.1 Preview 1

released November 08, 2021

Summary of What's New in this Release of Visual Studio 2022 version 17.1 Preview 1

Debugging & Diagnostics

  • Added a support for Microsoft Azure App Services Attach to Process.

Git Tooling

.NET Multi-platform App UI (MAUI) Preview 10

  • .NET MAUI Preview 10 is now available.

.NET Productivity

  • Go To Definition from source information in PDBs.
  • IntelliSense completion for await within an awaitable expression.
  • Move static members to a new type refactoring.
  • Simplify code to use the new C# 10.0 extended property patterns refactoring.
  • Detect variable swaps and suggest using a tuple to swap values refactoring.
  • Code definition window support for C# and Visual Basic.
  • Enable nullable reference types across a project refactoring.
  • Signature help simplified view improvements when a tuple appears many times within a signature.
  • Understand errors and warnings at a glance with inline diagnostics.

XAML Hot Reload

  • XAML Hot Reload now supports more end-to-end scenarios when using together with .NET Hot Reload.

XAML Live Preview

  • XAML Live Preview now supports .NET MAUI apps (WinUI & Android).

Top Voted Issues From Developer Community

Please see our full list of Developer Community fixes in this release.

Known Issues in 17.1 Preview 1

Details of What's New in this Release of Visual Studio 2022 version 17.1 Preview 1

Debugging & Diagnostics

Microsoft Azure App Services Attach to Process

You can now attach to your .NET (Framework. Core, or 5+) for Windows App Service without a solution or project open.

Open the Attach to Process Dialog -> Change the Connection Type to Microsoft Azure App Services -> Select Find -> Select your Subscription and then find your App Service under the resource group and hit “Ok�. Find the process you want to connect to and select “Attach�.

.NET Multi-platform App UI (MAUI) Preview 10

  • In this release you can use Visual Studio 2022 to create a new or continue to work on an existing .NET MAUI application.
  • .NET MAUI also supports features such as XAML Live Preview (for WinUI and Android Emulator) and .NET Hot Reload for all platforms.

For more details on our Preview 10 release please see the .NET Blog.

.NET Productivity

  • When building managed libraries developers can choose to embed their source files with the debug information (PDB file) that is produced by the build, and even embed the PDB file into the assembly itself. We now surface embedded source as part of Go to Definition if a referenced assembly has embedded source and the PDB is available. This allows you to navigate to the original source files that declare the target symbol. Place your cursor on a symbol and press F12 to navigate to the original source file.

  • There is now IntelliSense completion for await within an awaitable expression. Start typing an awaitable expression and notice how await will now show up in the completion list.

  • There is now a refactoring to move static members to a new type. Place your cursor on a static member. Press (Ctrl+.) to trigger the Quick Actions and Refactorings menu. Select Move static members to another type.... This will open a dialog where you can select the members that you would like to move.

    Move static members to another type refactoring

  • There is now a refactoring to simplify code to use the new C# 10.0 extended property patterns. Using extended property patterns reduces noise allowing you to reference nested members instead of nesting another recursive pattern. Place your cursor on a nested member reference. Press (Ctrl+.) to trigger the Quick Actions and Refactorings menu. Select Simplify property pattern.

    Simplify property pattern refactoring

  • There is now a refactoring that detects variable swaps and suggests using a tuple to swap values so instead of using a temporary variable in-order to swap arguments you can use a tuple. Place your cursor on a temporary variable assignment where you are swapping values. Press (Ctrl+.) to trigger the Quick Actions and Refactorings menu. Select Use tuple to swap values.

    Use tuple to swap values refactoring

  • The Code Definition Window now supports C# and Visual Basic. To use the Code Definition Window, either press (Ctrl+W,D) or select View > Code Definition Window. Next, place your cursor on an identifier to navigate and explore code.

    C# and Visual Basic support in the Code Definition Window

  • There is now a refactoring to enable nullable reference types across a project. You can enable nullable reference types by adding the <Nullable>enable</Nullable> element to your project file or add the #nullable enable pragma to every source file in your project. To help streamline this process we now automatically include the <Nullable>enable</Nullable> for new .NET projects. For existing .NET projects, you can enable nullable reference types by placing your cursor on a #nullable enable pragma. Press (Ctrl+.) to trigger the Quick Actions and Refactorings menu. Select Enable nullable reference types in a project.

    Enable nullable references types across a project refactoring

  • Signature Help has improved its display when a tuple appears many times within a signature. The simplified view includes the Structural Type key to show you what is contained in the tuple.

  • You can now understand errors and warnings at a glance without needing to hover your cursor over a line of code with Inline Diagnostics. Inline Diagnostics is disabled by default so you will need to enable it in Tools > Options > Text Editor > C# or Basic > Advanced and select Display diagnostics inline (experimental).

    Inline Diagnostics

XAML Hot Reload

In this release we continue to preview our on going work to create a better experience when using both XAML and .NET Hot Reload together.

In this release we’ve enabled the following scenarios:

For WPF and WinUI 3 apps:

  • XAML code editor will now properly show newly created control types and properties created by a .NET Hot Reload operation in IntelliSense
  • Binding to a newly created property using .NET Hot Reload will now work as expected. For WinUI you can also now use x:Bind to bind to a new property as well

For WPF apps:

  • Adding a newly created method for an event handler created using .NET Hot Reload will now work

To help us test these new features, make sure you turn on the preview flag under “Options > Preview Features > XAML IntelliSense updates after .NET Hot Reload”.

Note: While the above scenarios work if the types are first applied using .NET Hot Reload and then XAML Hot Reload is used, there is a known limitation. For example, if you add assign a new property using XAML Hot Reload to a property that has not yet been created and only then use .NET Hot Reload to create it, the XAML change will not see the new property. We are aware of this issue and hope to improve it in the future.

XAML Live Preview

  • In this release XAML Live Preview is supported for .NET MAUI apps running as either a WinUI 3 app or in an Android Emulator

Known Issues

See all open issues and available workarounds in Visual Studio 2022 by following the below link.


Feedback and suggestions

We would love to hear from you! You can Report a Problem or Suggest a Feature Feedback Icon by using the Send Feedback icon in the upper right-hand corner of either the installer or the Visual Studio IDE, or from Help > Send Feedback. You can track your issues by using Visual Studio Developer Community, where you add comments or find solutions. You can also get free installation help through our Live Chat support.


Blogs

Take advantage of the insights and recommendations available in the Developer Tools Blogs site to keep you up-to-date on all new releases and include deep dive posts on a broad range of features.


Top of Page