question

erwingunawan-8029 avatar image
0 Votes"
erwingunawan-8029 asked miwan2-msft edited

how to auto refresh when saving in blazor??

i watched https://youtu.be/cilV8vnEjJE , he show auto fresh when saving code in blazor , i want to know that

dotnet-aspnet-core-blazor
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

miwan2-msft avatar image
1 Vote"
miwan2-msft answered miwan2-msft edited

The Answer has been post on GitHub by Daniel Roth.

We also enabled support for auto refreshing the browser in both dotnet watch and in VS. To turn this feature on in VS, you need to set this option:

vs-auto-refresh

This is different from hot reload, in that the app is still getting restarted and the app reloaded in the browser. But it does enable you to focus on editing the code while tooling rebuilds and refreshes the browser for you.




If the answer is helpful, please click "Accept Answer" and vote it up.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Best Regards,
Michael Wang



image.png (56.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.