Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot Reload for ASP.NET Core #18486

Closed
1 task
Tracked by #5510 ...
mkArtakMSFT opened this issue Jan 21, 2020 · 12 comments
Closed
1 task
Tracked by #5510 ...

Hot Reload for ASP.NET Core #18486

mkArtakMSFT opened this issue Jan 21, 2020 · 12 comments
Assignees
Labels
affected-all This issue impacts all the customers area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates Components Big Rock This issue tracks a big effort which can span multiple issues Done This issue has been fixed enhancement This issue represents an ask for new feature or an enhancement to an existing one Epic Groups multiple user stories. Can be grouped under a theme. feature-hot-reload This issue is related to the Hot Reload feaature Priority:0 Work that we can't release without severity-major This label is used by an internal tool Theme: inner-loop
Milestone

Comments

@mkArtakMSFT
Copy link
Member

mkArtakMSFT commented Jan 21, 2020

.NET 6.0 is introducing support for Hot Reload during development.

This issue is tracking ASP.NET Core specific changes required to make the developer experience great when code changes are applied via the new Hot Reload feature in .NET 6.0. These code changes are anticipated to be those supported by the runtime's Edit and Continue feature, or new versions of an entire type, in cases where ASP.NET Core could support appropriate remapping to the new type (e.g. a Razor View).

@mkArtakMSFT mkArtakMSFT added enhancement This issue represents an ask for new feature or an enhancement to an existing one area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates Components Big Rock This issue tracks a big effort which can span multiple issues labels Jan 21, 2020
@mkArtakMSFT mkArtakMSFT added this to the Next sprint planning milestone Jan 21, 2020
@EmadBustati
Copy link

Hi @mkArtakMSFT, Thanks for your great efforts for making Asp.net core more powerful. I was searching for Asp.net Core Hot Reload feature but I have struggled to find any good solution.

We are using Flutter hot reload and you can't imagine how this feature makes us productive while prototyping and making new apps.

For Asp.net Core we have found watch tool, but it's relay not making us productive because it's not supporting debugging with breakpoints and the state of the server restarts each time we save our changes.

What we expect to be able to set breakpoints in our controllers, start the server, add or modify new methods and codes then click save and see the changes when we hit the controllers again without the need to restarting the asp.net app.

Is that what you are trying to implement?

@imuller
Copy link

imuller commented Nov 26, 2020

Is there any update on this? This would make is super productive when working on .net core applications.

Take a look at https://www.livesharp.net/

@ghost
Copy link

ghost commented Jan 8, 2021

Thanks for contacting us.
We're moving this issue to the Next sprint planning milestone for future evaluation / consideration. We will evaluate the request when we are planning the work for the next milestone. To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

@cyq1162

This comment has been minimized.

@mkArtakMSFT mkArtakMSFT removed this from the Next sprint planning milestone Jan 26, 2021
@DamianEdwards DamianEdwards added Epic Groups multiple user stories. Can be grouped under a theme. and removed User Story A single user-facing feature. Can be grouped under an epic. labels Feb 12, 2021
@mkArtakMSFT mkArtakMSFT moved this from Preview 2 (CC: 19th Feb) to Preview 3 (22nd Mar) in ASP.NET Core Blazor & MVC 6.0 Feb 18, 2021
@SvenAelterman
Copy link

@mkArtakMSFT Can you remove the clickbait comment from Jan 15, please?

@sander1095
Copy link

@mkArtakMSFT

Hello! I want to ask you the same thing as @EmadBustati .

If this were implemented, could I change code in my controller (or domain, or any other layer of my application) during development and things would hot reload? Or is only for the API project?

My project does not use razor; it's purely an API that returns JSON; would this be supported?

@mkArtakMSFT mkArtakMSFT moved this from Preview 3 (19th Mar) to In Progress in ASP.NET Core Blazor & MVC 6.0 Mar 1, 2021
@nphmuller
Copy link

Here's a community solution that implements hot reloading for Razor which you might want to look at for inspiration: https://github.com/RickStrahl/Westwind.AspnetCore.LiveReload

@hez2010
Copy link
Contributor

hez2010 commented Mar 26, 2021

@mkArtakMSFT

Hello! I want to ask you the same thing as @EmadBustati .

If this were implemented, could I change code in my controller (or domain, or any other layer of my application) during development and things would hot reload? Or is only for the API project?

My project does not use razor; it's purely an API that returns JSON; would this be supported?

According to previous .NET 6 preview release blogs, I think the answer is YES.

@MaherJendoubi
Copy link
Contributor

MaherJendoubi commented Apr 11, 2021

Does this include Hot Reload for ASP.NET Core inside a docker container?

@pranavkm pranavkm modified the milestones: 6.0-preview4, 6.0.0 Apr 16, 2021
@pranavkm pranavkm moved this from In Progress to 6.0 in ASP.NET Core Blazor & MVC 6.0 Apr 16, 2021
@PeterHimschoot
Copy link

PeterHimschoot commented Apr 17, 2021

Hot reload builds my project, and then again, and then again, etc...

Is there a hotfix available? Am I the only one?

This does not happen all the time, but once it does, I can't seem to fix it

@dotnet dotnet locked as resolved and limited conversation to collaborators Apr 17, 2021
@pranavkm
Copy link
Contributor

@PeterHimschoot could you please file a separate issue for the bug you're running in to?

@MaherJendoubi we haven't look at the docker scenario as yet. I filed #31908 to investigate what it would take for us to support it.

@sander1095 sorry for the late response, but we expect most .NET 6 workloads to work by the end of 6.0. The way it manifests might be different - for instances Blazor apps can re-render when a hot reload event happens, but a view or an API with swagger would require a browser refresh to see the update, but we expect changes to be applied to apps without needing a rebuild.

@javiercn javiercn added the feature-hot-reload This issue is related to the Hot Reload feaature label Apr 18, 2021
@pranavkm
Copy link
Contributor

Closing this as the initial set of features have landed in the preview3 and preview4 milestones and soon in VS.

.NET 6.0 automation moved this from Committed to Completed May 19, 2021
ASP.NET Core Blazor & MVC 6.0 automation moved this from 6.0 to Done May 19, 2021
@ghost ghost added Done This issue has been fixed and removed Working labels May 19, 2021
@pranavkm pranavkm modified the milestones: 6.0.0, 6.0-preview3 May 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affected-all This issue impacts all the customers area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates Components Big Rock This issue tracks a big effort which can span multiple issues Done This issue has been fixed enhancement This issue represents an ask for new feature or an enhancement to an existing one Epic Groups multiple user stories. Can be grouped under a theme. feature-hot-reload This issue is related to the Hot Reload feaature Priority:0 Work that we can't release without severity-major This label is used by an internal tool Theme: inner-loop
Projects
.NET 6.0
  
Completed
Development

No branches or pull requests