how to auto refresh when saving in blazor??

erwin gunawan 1 Reputation point
2021-03-28T20:44:41.717+00:00

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

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,595 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Wang-MSFT 1,061 Reputation points
    2021-03-30T02:09:11.34+00:00

    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

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.