-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Improving The Hot Reload Feature #57724
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Thanks for the issue. Hot Reload is based on the same underlying infrastructure as Edit and Continue, relying on the compiler and the runtime to support producing and consuming the desired code changes. We're continuing to work on increasing the scope of changes supported and feedback really helps us prioritize that. Can you give some specific examples of the kinds of edits you'd like to see supported? Visual Studio will show you the reason why an edit is not supported by Hot Reload in the Errors list and/or Output window "Hot Reload" source. If using |
@DamianEdwards Thank you Damian. I've been using dotnet for the past 6 years professionally. From my perspective these are the most often scenarios I came across which requires me to rebuild and wait. Usually enterprise apps are huge, Rebuilding for a simple change is a real pain.
|
I'm going to move this issue to the dotnet/roslyn repo as that's where work RE supporting more EnC changes is tracked. |
Thanks for logging the issue @sangeethnandakumar, I wonder if you could provide some more specifics of the issues you're seeing.
In general changing lambdas should be allowed, though there are certainly limitations (like changing the return type for example) and some extra things we could allow (eg. #54672). Can you give a code example of your before/after to help identify the exact issue?
This is surprising. Again, could you provide a before/after of the change you're making here?
Adding properties should be allowed, but deleting members is definitely a limitation at the moment.
Adding attributes should be allowed. What runtime are you using, and what .NET version are you targetting? .NET 6 running on Core CLR should support this, but the Mono runtime is not currently able to alter attributes. |
Closing this issue as we've seen no reply to the request for more information. If you are able to get the requested information, please add it to the issue and we will retriage it. |
I was trying to write a huge REST API project and I thought hot reload could make me so much more productive.
As an evolving API requires lot of DTO changes, Model changes, Property modifications, Request/Response changes etc.. dotnet hot reload isn't good for any of these code evolving change scenarios.
I certainly know and understand the underlying issues for not be able to use hot reload for everything but without these I believe most uses cases aren't covered.
It would be awesome to be able to change models, properties & function attributes on the go with hot reload.
To my use case dotnet hot reload is simply an extended version of "changing code while debugging line by line", That already on dotnet for years. Would love to see it became more useful.
The text was updated successfully, but these errors were encountered: