Skip to content

Hot Reload for Blazor #5456

Closed
Closed

Description

@danroth27

Activity

  1. SteveSandersonMS commented on Mar 16, 2018

    @SteveSandersonMS
    Member

    See dotnet/blazor#193 for status updates on this work item.

  2. martasp commented on Mar 23, 2018

    @martasp

    For now, we can use dotnet watch run and recompile every time when the change occurs.
    Just using this in csproj file :
    <DotNetCliToolReference Include="Microsoft.DotNet.Watcher.Tools" Version="2.0.0" />
    <Watch Include="**\*.cshtml"/>

  3. danroth27 commented on Apr 4, 2018

    @danroth27
    MemberAuthor

    We've hit a snag with live reload for 0.2.0, so moving this out until we can work through a more robust design.

  4. transferred this issue fromdotnet/blazoron Dec 17, 2018
  5. added this to the Backlog milestone on Dec 17, 2018
  6. added
    area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates
    enhancementThis issue represents an ask for new feature or an enhancement to an existing one
    area-blazorIncludes: Blazor, Razor Components
    on Dec 17, 2018
  7. mkArtakMSFT commented on Mar 20, 2019

    @mkArtakMSFT
    Contributor

    @danroth27, what's #4056 then? Should it be closed?

  8. removed
    area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates
    on May 9, 2019
  9. 165 remaining items

  10. BrunoBlanes commented on Nov 23, 2020

    @BrunoBlanes

    @hannespreishuber that is a terrible way to provide feedback if that was your intent. Try opening an issue and following the template.

  11. Filipowicz251 commented on Nov 23, 2020

    @Filipowicz251

    USE LIVESHARP... can’t believe a kid in his basement managed to do something that Microsoft can’t.

    Edit: sorry don’t get me wrong, Microsoft has done a terrific job.. but this feature is a must ... just to change a DIV or an attribute is like 45 secs minimum

    Just small feedback regarding this statement. For me and using "Auto build and refresh option" (what @porkopek suggested) is taking more like 5 secs. Yes, it is not 1 sec as with Livesharp but it is quite fast and it is working :)

    I did try Livesharp, but for me it was breaking the external JS on the site (I did have some slider revolution part and after livesharp was sending an update, the js on the site was broken)

  12. mrlife commented on Nov 23, 2020

    @mrlife
    Contributor

    something we're looking in to adding support for very soon.

    @pranavkm @jongalloway Possible to update the VS Mac roadmap?

  13. szalapski commented on Nov 23, 2020

    @szalapski

    Hmmm, auto-refreshing the browser in .NET 5 using dotnet watch run doesn't seem to be working for me. I used to use Westwind.AspNetCore.LiveReload, but I have removed it to try this out. When I make a change, the app rebuilds and restarts web server for me, but the browser doesn't refresh. This is a project I upgraded from .NET Core 3.1. Is there anything that needs to be done in startup.cs to enable this? What else could be interfering? How can I troubleshoot?

  14. BrunoBlanes commented on Nov 23, 2020

    @BrunoBlanes

    @szalapski Have you noticed if the browser isn't refreshing before the server finishes starting up? I've seen that happen a few times. I don't know if it is by design.

  15. danroth27 commented on Dec 1, 2020

    @danroth27
    MemberAuthor

    @szalapski Does auto refresh work if you start from a new project? Have you set "launchBrowser": true in launchSettings.json?

  16. gojanpaolo commented on Dec 1, 2020

    @gojanpaolo

    dotnet watch run also just stops working for me sometimes. Closing all VS instances and then rerunning dotnet watch run seems to solve the issue. I'll see if I can drill down the root cause.

  17. danroth27 commented on Dec 1, 2020

    @danroth27
    MemberAuthor

    For folks hitting issues with dotnet watch run please open new GitHub issues with any details you have about how to reproduce the problem, so that we don't conflate those investigations with the hot reload work we're working on for .NET 6.

  18. locked as off topic and limited conversation to collaborators on Dec 1, 2020
  19. mkArtakMSFT commented on Sep 16, 2021

    @mkArtakMSFT
    Contributor

    Closing this issue as we're done with the work we planned to deliver for 6.0.
    There are still many improvements to do in this area which are going to be tracked as part of dotnet/runtime#57365

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Components Big RockThis issue tracks a big effort which can span multiple issuesDoneThis issue has been fixedEpicGroups multiple user stories. Can be grouped under a theme.Needs: DesignThis issue requires design work before implementating.Priority:0Work that we can't release withoutTheme: inner-loopaffected-mostThis issue impacts most of the customersarea-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-hot-reloadThis issue is related to the Hot Reload feaatureseverity-majorThis label is used by an internal tool

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions