Is there a way to add the Visual Studio 2022 hot reload button to Rider?

188 views Asked by At

Recently, I have decided to try moving to Rider from Visual Studio 2022 for the .NET API and Winforms Development. Everything looks great so far, but I have one feature missing - Hot Reload Button. Hot reload button in Visual Studio 2022

In Visual Studio, this button click animation was "Confirming" that the changes were made, and in Rider I'm not sure if anything has changed.

Can I somehow add it to Rider as the button?

I've found the hotkeys for the hot reload in Rider, but I'd like to get some kind of the notification that "The changes have been applied".

The button would be the perfect solution, but anything else, which can be recognized as the Confirmation, would be ok aswell.

1

There are 1 answers

0
Bowman Zhu-MSFT On BEST ANSWER

In fact, this feature should be enabled by default since Rider 2021.3:

What’s New in Rider 2021.3

Hot Reload Settings since 2021.3

enter image description here

enter image description here

You need to click 'apply changes' in Rider when you change something:

enter image description here

By the way, please notice the limitations of the Rider hot reload:

Limitation of Rider Hot Reload

There are cases when modifying the code is not possible and a restart is required. These include changing signatures, modifying generic functions, renamings of any kind, and some more. If this happens JetBrains Rider will make you aware by showing a tooltip.

Hot Reload is not supported in F# and VB applications.

Hot Reload does not support changes made to the UI formats in frameworks like WPF, Windows Forms, and .NET MAUI as well as in Blazor WebAssembly (WASM).

When applying Hot Reload to an ASP.NET Core application, the browser does not refresh automatically.

By the way, don't block your thread, otherwise hot reload won't work.