Visual Studio 2022 version 17.1 Preview Release Notes
Watch the recordings of the Visual Studio 2022 launch event to learn about what's new, hear tips & tricks, and download free digital swag.
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.
Visit the visualstudio.microsoft.com/downloads page to download other Visual Studio 2022 products.
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.
What's New in Visual Studio 2022 version 17.1 Preview
Visual Studio 2022 version 17.1 Preview Releases
- November 16, 2021 — Visual Studio 2022 version 17.1 Preview 1
- November 08, 2021 — Visual Studio 2022 version 17.1 Preview 1
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:
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.
released November 08, 2021
Summary of What's New in this Release of Visual Studio 2022 version 17.1 Preview 1
- Added a support for Microsoft Azure App Services Attach to Process.
- Added capability to include README file when creatting new Git repositories in Visual Studio
- Enhanced the ability to pin commonly used branches utilizing hover buttons
- Built a more discoverable UI for relating Work Items with new commits
- .NET MAUI Preview 10 is now available.
- Go To Definition from source information in PDBs.
- IntelliSense completion for
awaitwithin 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 now supports more end-to-end scenarios when using together with .NET Hot Reload.
- 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.
- Visual Studiof Upgrade broke package compilation
- Linux development with C++ - Internal Dynamic linkage is wrong
- Comments without Doxygen tags is not parsed correctly
- Link error with local declaration inside namespace
- Predefined macros for launch.vs.json
- Solution explorer do not display power shell files icon
- C26440 false positive Function can be declared 'noexcept'
- C++: std::is_empty is incorrect for a template specialization
- VC++ for Linux: Remote Pre-Build Event running before copy sources
- Blazor Server and Css Isolation using .Net 6 + VS Community 2022
Known Issues in 17.1 Preview 1
- Visual Studio Editor is either blank without any error message or uses a font other than the one selected in Tools\Options.
Details of What's New in this Release of Visual Studio 2022 version 17.1 Preview 1
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.
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
awaitwithin an awaitable expression. Start typing an awaitable expression and notice how
awaitwill 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.
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.
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.
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.
There is now a refactoring to enable nullable reference types across a project. You can enable nullable reference types by adding the
</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>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.
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).
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
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 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.
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.