PreviewLogo Visual Studio 2022 version 17.9 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 | Release History | 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 Visual Studio site 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


Visual Studio 2022 version 17.9 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:


Note

This update may include new Microsoft or third-party software that is licensed separately, as set out in the 3rd Party Notices or in its accompanying license.


17.9.0-pre.5 Visual Studio 2022 version 17.9 Preview 5

released Jan 30th, 2024

Summary of What's New in this Release of Visual Studio 2022 version 17.9 Preview 5

  • Keyboard navigation was disabled in an earlier 17.9 preview. This has been fixed and arrow keys can again be used for navigation and text selection.
  • Visual Studio is able to run form under the SYSTEM account.

Developer Community


17.9.0-pre.4 Visual Studio 2022 version 17.9 Preview 4

released Jan 23rd, 2024

Summary of What's New in this Release of Visual Studio 2022 version 17.9 Preview 4

Developer Community


17.9.0-pre.3 Visual Studio 2022 version 17.9 Preview 3

released Jan 17th, 2024

Summary of What's New in this Release of Visual Studio 2022 version 17.9 Preview 3

  • Adds Xcode 15.1 Support and API fixes, for full release notes please visit our macios releases page.

Developer Community

Microsoft Teams Toolkit

New features:

  1. Newly added Teams AI Bot template is to help you getting started with building a GPT-like chat bot with AI capabilities using Teams AI Library.

Teams AI Bot template

  1. Teams Bot Test Tool: if you develop Teams Bot app, now you can use Teams App Test Tool to debug, preview and test your bot app in a web based imitated Teams chat environment. Select Teams App Test Tool debug profile.

Teams Bot Test Tool

  1. Adaptive card previewer: Teams Toolkit now integrates the Microsoft Adaptive Card Previewer to help you preview and edit Adaptive Cards in a more intuitive way. Click on the Preview button in the definition file of the Adaptive Card, and preview in the right side.

Adaptive card previewer

  1. Add CodeLens to trigger Teams Toolkit lifecycle steps: Teams Toolkit provides lifecycle actions and open the configuration definitions to developers in teamsapp.yml file. Now you can preview and trigger the predefined lifecycle actions using CodeLens of teamsapp.yml file.

CodeLens

  1. Teams Toolkit Documentations: Access Teams Toolkit docs from menu "Project -> Teams Toolkit -> Teams Toolkit Documentation"

Documentations

Preview features:

This version of Teams Toolkit added several preview features to support developing for Microsoft Copilot. Turn on the preview feature flag to try out the new features. To turn on preview features: go to menu "Tools -> Options", select "Preview Features" in left panel, tick "Teams Toolkit: Develop Copilot Plugin".

Preview Feature Flag

  1. Copilot app template: Want to develop for Microsoft Copilot? We onboard a new template for Microsoft Copilot app, start with this new template first!

Copilot app template

  1. Check account permission to develop for Copilot: develop apps for Microsoft Copilot requires additional access, Teams Toolkit add account access precheck for you, please make sure you get the right permissions before starting your Copilot journey!

Check account permission for Copilot

  1. AI Assistant Bot is powered by the Teams AI library and the OpenAI Assistants API, this template demonstrates how to build an intelligent chatbot within Teams.

AI Assistant Bot template

Enhancement:

  1. New UI design of M365 account login dialog. We observed developers are easy to be blocked by M365 account don't have custom app permissions to continue developer Teams app. To unblock users from account issue, you should register M365 developer program to get free dev account. The links are provided in new UI design.

New UI design of M365 account login dialog

  1. Tab template is updated to latest Blazor changes (interactive Server rendering) for .NET 8.

17.9.0-pre.2.1 Visual Studio 2022 version 17.9 Preview 2.1

released Jan 3rd, 2024

Summary of What's New in this Release of Visual Studio 2022 version 17.9 Preview 2.1

Developer Community


17.9.0-pre.2.0 Visual Studio 2022 version 17.9 Preview 2

released Dec 12th, 2023

Summary of What's New in this Release of Visual Studio 2022 version 17.9 Preview 2

Auto Surround with Quotes or Brackets

You can now easily surround a selection with bracket delimiters including: "double quotes", 'single quotes', (parentheses).

Auto Surround Quotes Brackets

To enable or disable this feature, go to Tools > Options > Text Editor and check the "Automatically surround selections when typing quotes or brackets" option.

SQL / SSDT

  • Removing the red warning icon for Username in ADDefaultAuthentication
  • Enabled 3 new Authentication types keeping parity with Subsystem
    • ActiveDirectoryManagedIdentity - Microsoft Entra Managed Identity
    • ActiveDirectoryServicePrincipal - Microsoft Entra Service Principal
    • ActiveDirectoryDefault - Microsoft Entra Default
  • Standard bug fixes and performance improvements.

Benefit Awareness Diamond for Visual Studio Enterprise and Professional Subscribers

A new icon will appear next to the identity picker in the upper right corner of the Visual Studio IDE. This feature will allow paid Visual Studio subscribers to learn more about included benefits as well as receive future updates.

Generated Commit Messages

Responsive Ref Labels in the Git Repository Window

Your branch and tag labels now resize responsively to make it easier to see which branches you're looking at in the Git graph.

Responsive Ref Labels

Live Property Explorer Support with .NET MAUI

Live Property Explorer (LPE) is now supported with .NET MAUI. View and tweak the properties of your app controls at runtime while debugging issues, optimizing performance, and investigating XAML properties. LPE joins the suite of your favorite XAML tools to be used in conjunction with XAML Live Preview and Live Visual Tree.

.NET MAUI app running with LPE and other XAML tools

Microsoft Teams Toolkit

In the latest Visual Studio 2022 version 17.9 Preview 2 we made the following improvements:

  • Teams Toolkit templates now support developers to select the dotnet framework version per your preference. (We only support dotnet 6 in the past) Teams template support select dotnet version

  • Teams Toolkit templates now support to preview and debug in Outlook and Office.com.


Known Issues


17.9.0-pre.1.1 Visual Studio 2022 version 17.9 Preview 1.1

released Nov 28th, 2023

Summary of What's New in this Release of Visual Studio 2022 version 17.9 Preview 1.1

  • Fixed an issue in which the inclusion or reference to certain components, or certain particular calculated diagnostics messages, would cause features like completion and diagnostics to be inactive for a Razor project.
  • When the "Game Development with Unity" workload was installed, IntelliSense was not working properly for all non-Unity C# projects, due to an issue with the "Visual Studio Tools for Unity" component.

Developer Community


17.9.0-pre.1.0 Visual Studio 2022 version 17.9 Preview 1

released Nov 14th, 2023

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

Visual Studio installation now requires .NET Framework 4.7.2

Starting with Visual Studio 17.9 Preview 1, you will need to have .NET Framework 4.7.2 or above installed on your machine to install Visual Studio. To avoid any installation issues, we recommend that you download and install .NET Framework 4.7.2 before installing Visual Studio 17.9 or later.

Generated Commit Messages

Use the new generated Git commit message feature to help you describe your set of changes. To try it out, you'll need an active GitHub Copilot subscription and the preview GitHub Copilot Chat Extension.

Generated Commit Messages.

Click on the “Add AI Generated Commit Message” sparkle pen icon in the Git Changes window to generate a suggestion. GitHub Copilot will look at the file changes in your commit, summarize them, and then describe each changes. You can then "Insert AI Suggestion" or "Discard." Share your feedback on this feature here.

Open a Pull Request in Visual Studio or in Browser

To support GitHub and Azure DevOps users who prefer to use the browser view for creating pull requests, we've added a secondary link to help maintain current user flows.

Open a Pull Request

Blazor Scaffolding for .NET 8 Projects

We have added the ability to scaffold views in .NET 8 Blazor web projects. This includes scaffolding views that use Entity Framework for CRUD (Create-Read-Update-Delete) operations.

For more info see the release blog post.

Debugging, Diagnostics and Profiling

Event Handler Leaks Insights

The "Manage Memory Insights" tab now provides additional helpful information. It can detect "Event Handler Leaks" that can potentially occur, when one object subscribes to another object's event. If the publisher of the event outlives the subscriber, the subscriber remains alive, even if there are no other references to it. This can lead to memory leaks, where unused memory isn't properly freed, causing the application to use more and more memory over time.

EventHandler

Non-modal Debug Visualizers

Managed Custom Visualizers and the String Visualizes are now non-modal, allowing concurrent interaction with the Editor while the visualizer window is active. It is possible to have multiple types of visualizers open simultaneously, and you have the flexibility to choose whether to float or dock your visualizer window.

Debug Visualizers

Automatic Deoptimization

With .NET 8, the Debugger features automatic deoptimization of release binaries and external code during debugging. When you set breakpoints and step through your code, only the specific portions you pause in will be deoptimized, allowing the remainder of the application to maintain optimal performance. To benefit from this feature, the user needs to disable the "Just My Code" option in the debugger settings. This enhancement offers several advantages, including a reduction in errors within the locals, watch, and immediate windows, as well as a decrease in unexpected code navigation while stepping through the application.

Automatic Deoptimization

Build and Debug .NET SDK containers

We have added the ability to easily build and debug your ASP.NET projects in a container without a dockerfile. Adding .NET SDK Container support will leverage the .NET container rather than requiring a Dockerfile in your project.

To enable support: Right click your ASP.NET project -> Add -> Docker support -> Select .NET SDK Container Debug type and your desired target operating system.

Let us know what you think of the feature by submitting suggestions here or by reporting issues here

Instrumentation "Start with collection pause" option

The Instrumentation tool has introduced support for the "start-pause" option in application profiling. When selected feature enables the temporary suspension of data collection. Basically, it means starting the application under the profiler's control without actually collecting data. Once you resume using the record button the data collection process, it commences.This functionality is particularly beneficial for scenarios such as gaming, where users prefer to immerse themselves in the gameplay and prepare for reproducing issues before data collection begins. The feature is compatible with both native and managed projects.

Start with collection pause


Document management

After closing a solution or folder in previous versions of Visual Studio, a list of open documents to be restored on next open was preserved in the .suo file in a binary format. We've moved this metadata to a JSON file saved under the hidden .vs folder in the same folder location of the .suo file (solutionFolder.vs\SolutionName\v17). This human-readable JSON file contains the list of open documents and their properties, the layout of document groups and containers, and vertical tab column width.

As the list of open documents is now stored in a plain text file separate from the .suo file, you now have the ability to easily back up the data and even check in different sets of open documents that can be restored as needed.

This feature is on by default and can be turned off by unchecking "Save open documents in JSON format" in Tools > Options > Environment > Preview Features.


C++

Custom CMake Executable

You can now specify a custom CMake executable if you want to use a specific executable other than the one shipped with VS. To do so, please select Enable custom CMake executable in Tools > Options Options under CMake > General

Specify CMake executable

Include Diagnostics

The new #include diagnostics feature allows you to view and access the references of each #include directive in your code. Additionally, it displays the build time for each #include directive when you execute Build Insights. To activate this feature, right-click within your code editor, select #include Directives, and then opt for Turn #include Diagnostics On.”

Include References Diagnostics

Memory Layout of C++ Classes and Structs

To visualize the memory layout of classes or structs, hover over their names in your code editor, click on the “Memory Layout” link in the Quick Info tooltip, and see the diagram of data members with their padding, offsets, and sizes.

This feature is currently in its experimental stage and will undergo gradual enhancements in the Visual Studio 2022 version 17.9 Preview channels.

Remote Linux Unit Testing

Based on your feedback we have enabled running unit tests for remote Linux scenarios. Try it out with your C++ projects targeting Linux on WSL or remote systems in the Test Explorer.

Improved Unreal EngineBlueprint Experience in Visual Studio

You can now view Blueprint references and Asset Properties without installing the Visual Studio Integration Tool plugin. The update removes the requirement for building your game before gathering Blueprint information. Your Blueprint reference experience will be greatly improved as Visual Studio will now display CodeLens hints with less machine resources and reduced latency.

This is currently an experimental feature and will be gradually made available to Unreal Engine developers in the coming weeks on the Visual Studio 2022 version 17.9 Preview channels.

Improved IntelliSense Support for Unreal Engine Projects

We have improved the handling of Unreal Engine IntelliSense by ensuring consistency and accuracy. . IntelliSense in Visual Studio will now refresh more readily for Unreal Header Tool generated files, reducing the likelihood of displaying unwarranted errors.

Direct Unreal Engine project support

We have added the ability to use Unreal Engine projects in Visual Studio without needing to generate solution files from the Unreal Editor. This will enable you to add game assets in the Unreal Editor or Visual Studio without having to regenerate your Unreal Engine projects. Learn more in our Visual Studio support for Unreal Engine projects announcement.

Switch between single and multiple tab rows in the document well

You can now quickly switch between single and multiple tab rows in Visual Studio's document well by scrolling the mouse wheel up or down. The first time you open more tabs in Visual Studio than can fit in a single row in the document well, you'll see a tip letting you know of this new feature.

Scrolling down on the mouse wheel while hovering over the tabs in the document well will shift your view to show multiple tab rows. Conversely, scrolling up on the mouse wheel will collapse the view down to a single tab row.

UI Refresh Preview and Tinted Themes

The UI Refresh is now available for folks to try out for themselves. To enable the UI Refresh, go to Tools > Manage Preview Features and Check the "Experimental control styles" option. Once the option is checked, Visual Studio will need to be restarted.

Animated image cycling through the various tinted themes

When the UI Refreh preview is enabled, the new tinted themes are available. The new themes can be found under Tools > Theme, or in the "Color Theme" combobox in Tools\Options under Environment > Visual Experience. The Blue theme is not available when the UI Refresh is enabled and custom themes may not be compatible with the UI Refresh.


F#

  • Fixed a bunch of code fix issues, stabilized and extended their functionality (details here).
  • Enhanced autocompletion in many instances, notably:
    • return type annotations: autocompletion improvement 1
    • record field names: autocompletion improvement 2
    • overrides: autocompletion improvement 3
  • Improved go to definition and find references behaviors in some edge cases.

SQL

Developer Community Highlights


Windows Subsystem for Android

You can now test and debug your Android apps on Windows Subsystem for Android (WSA) with Visual Studio. If WSA is installed, it will automatically show up as an available debug target for .NET MAUI and .NET Android projects. If WSA is detected on your system, Visual Studio will display it under Android Local Devices in the debug targets menu.

Select it and start a debug session (F5) to build and deploy your Android app to WSA. If developer mode is not enabled, Visual Studio will guide you to enable it. Learn about system requirements and how you can install Windows Subsystem for Android.

Screenshot of Visual Studio debug targets menu


Mobile Development

The Pair to Mac auto-discovery capability fails to display new devices on the network. Even though a Mac is not displayed in the list of devices, one can connect to the Mac via it's IP address. This issue also exists for new computers running Visual Studio for the first time and connecting via IP address is required.