Microsoft Visual Studio 2022 is fixing one of the most annoying issues for developers

coding
(Image credit: Shutterstock / Elle Aon)

With the recent release of Microsoft Visual Studio 2022 Preview 2, Microsoft has introduced a brand-new Hot Reload experience that not only helps developers be more productive but also supports both managed .NET and native C++ apps.

The software giant's goal with the latest update to its development environment is to save developers as many app restarts between edits as possible according to a new blog post. To achieve this, Microsoft has made it possible for developers to edit their applications' code files and in many cases, apply code changes immediately without having to pause an apps' execution or restarting. 

At the same time though, this brand-new Hot Reload technology for code files will also still work side-by-side with XAML Hot Reload making both XAML and .NET Hot Reload available for applications which use XAML for their UI. 

Furthermore, Hot Reload works alongside existing debugger capabilities developers are familiar with such as breakpoints and 'edit and continue' (EnC) to modify running code at a breakpoint and other features.

Revamped Hot Reload experience

In Microsoft Visual Studio 2022 Preview 2, Hot Reload works with many types of apps including those powered by XAML such as WPF and WinUI 3 along with many others including Windows Forms, ASP.NET web apps, Blazor Server, Console apps and others apps where a modern .NET runtime is used in combination with Visual Studio debugger.

Microsoft has also said that it is actively working to support more app types in the future such as Blazor Wasm and .NET MAUI iOS/Android.

Going forward, the company plans to add support for Blazor web apps in more scenarios and editing CSS files during Hot Reload though it also plans to add further improvements to the user experience in Visual Studio 2022.

Being able to edit application code files and apply changes without having to pause an app's execution or restart will likely be welcomed by developers using Visual Studio 2022 as this will save them time and help improve their overall productivity.

Via MSPoweruser

TOPICS
Anthony Spadafora

After working with the TechRadar Pro team for the last several years, Anthony is now the security and networking editor at Tom’s Guide where he covers everything from data breaches and ransomware gangs to the best way to cover your whole home or business with Wi-Fi. When not writing, you can find him tinkering with PCs and game consoles, managing cables and upgrading his smart home. 

Read more
A laptop screen showing a ChatGPT coding panel
The ChatGPT Mac app just got a massive coding upgrade – and it’s coming to Windows soon
AI Education
AI in 2025: Moving beyond code generation to intelligent development platforms
Parallels Desktop 20.2
This software may finally kill Windows on desktops for good, and I think Apple should buy it now
A laptop with the Windows 11 desktop on screen, glowing, while on a work desk
Microsoft changes Windows 11’s Start menu for the better (gasp) while introducing nifty new file sharing options
Portrait of African-American teenage boy studying at home or in college dorm and using laptop, copy space
Windows 11’s Notepad gets AI-powered ‘Rewrite’ feature, but not everyone’s going to be happy about it
A laptop on a desk with the Windows 11 background on its screen.
Microsoft is adding image editing and compression to its Windows Share feature - and I couldn't be happier
Latest in Software & Services
TinEye website
I like this reverse image search service the most
A person in a wheelchair working at a computer.
Here’s a free way to find long lost relatives and friends
A white woman with long brown hair in a ponytail looks down at her computer in a distressed manner. She is holding her forehead with one hand and a credit card with the other
This people search finder covers all the bases, but it's not perfect
That's Them home page
Is That's Them worth it? My honest review
woman listening to computer
AWS vs Azure: choosing the right platform to maximize your company's investment
A person at a desktop computer working on spreadsheet tables.
Trello vs Jira: which project management solution is best for you?
Latest in News
Nintendo Switch 2 Joy-Con up-close from app store
Nintendo's new app gave us another look at the Switch 2, and there's something different with the Joy-Con
cheap Nintendo Switch game deals sales
Nintendo didn't anticipate that Mario Kart 8 Deluxe was 'going to be the juggernaut' for the Nintendo Switch when it was ported to the console, according to former employees
Three angles of the Apple MacBook Air 15-inch M4 laptop above a desk
Apple MacBook Air 15-inch (M4) review roundup – should you buy Apple's new lightweight laptop?
Witchbrook
Witchbrook, the life-sim I've been waiting years for, finally has a release window and it's sooner than you think
Amazon Echo Smart Speaker
Amazon is experimenting with renaming Echo speakers to Alexa speakers, and it's about time
Shigeru Miyamoto presents Nintendo Today app
Nintendo Today smartphone app is out now on iOS and Android devices – and here's what it does