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" />
<ItemGroup>
    <Watch Include="..\**\*.razor" />
    <Watch Include="..\**\*.scss" />
    <Watch Include="..\**\*.cs" />
</ItemGroup>

Reference Link: https://stackoverflow.com/questions/58172922/is-there-any-hot-reload-for-blazor-server-side

Share with

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

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

Please submit your question and answer.