Introduction
In today’s article, we will look at a feature just introduced with Visual Studio 2019. This is the hot reload feature. In the past, if we made any code change in the backend code, we would need to restart the application to apply this change. This has now changed with the new hot reload feature. We can change our backend code on the fly while running the application, apply these changes, and see the results of the new code all while the application is running. Let us take a look at a simple implementation of this new feature.
Creating the VS 2019 application
For now, this feature is available with the Visual Studio 2019 Preview Version 16.11.0 Preview 1.0 version as below,
This feature should also be part of the upcoming Visual Studio 2022 version.
Let us create a Windows forms application. I am only creating this application as it is a simple way to demonstrate this new feature. The new hot reload feature can also be used with other types of applications like WPF, ASP.NET, etc.




Here, we will add a button and label it to the form. When we click on the button, we simply change the text as below,


Join the conversation! Your thoughts help the community grow.