Live Chat Icon For mobile
Live Chat Icon

Is hot reload support available in Blazor?

Platform: Blazor| Category: Tips and Tricks

As of now, hot reload is not supported in Blazor, but it has been scheduled for the .NET 5 release. Please refer here for more information.

However, you can use the following command in the command prompt.

dotnet watch run debug 

Also, you must include the following file types in the .csproj file for which files you want to watch.

<DotNetCliToolReference Include="Microsoft.DotNet.Watcher.Tools" Version="2.0.0" />
    <Watch Include="..\**\*.razor" />
    <Watch Include="..\**\*.scss" />
    <Watch Include="..\**\*.cs" />

Reference Link:

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.