dotnet / tye

Tye is a tool that makes developing, testing, and deploying microservices and distributed applications easier. Project Tye includes a local orchestrator to make developing microservices easier and the ability to deploy microservices to Kubernetes with minimal configuration.
MIT License
5.29k stars 520 forks source link

.NET 6 hot reload support. #1013

Open jspuij opened 3 years ago

jspuij commented 3 years ago

Yesterday I hacked together rudimental hot reload support that is coming in .NET 6 for asp.net projects. For me this is useful because with Service Fabric and angular I'm having inner development loop times of several minutes, and it's untenable. I'm looking at tye with Dapr with Blazor, just for this reason. This is just a trial to see whether it would work, but to make it into a decent PR, a bit of discussion might be necessary. Also, I'm not familiar with the inner workings of tye, which is why this may seem rather hacky. I'm very open to suggestions for improvement.

The changes are here:

https://github.com/dotnet/tye/compare/main...jspuij:net6hotreload

The way I did it was to disable the internal file watching of tye and run dotnet watch run instead of the executable directly. There are some advantages and disadvantages to this approach:

Advantages:

Disadvantages:

This might not be the route to take at all, but even then this issue can serve as a starting point for implementing hot reload support in Tye.

marinasundstrom commented 3 years ago

I am waiting for this functionality to enter.

As I see it:

aL3891 commented 2 years ago

Any word on this one? would be awesome to see it in the mainline releases :)

AndrewBabbitt97 commented 2 years ago

Where is this on the radar with .NET 6 now being GA?

marinasundstrom commented 2 years ago

I guess that this would require you to switch to .NET 6. Tye is still on .NET Core 3.1.

MarkusRodler commented 2 years ago

I think this is not necessary as @jspuij demonstrated it in his commit.

NicolaiOksen commented 2 years ago

Any words on this? It would greatly improve the dev flow if hot reload was supported.

cveld commented 2 years ago

When developing a Blazor frontend with some microservice dependencies, without hot reload support within tye, what would be your guidance as a workaround?

Sen-Gupta commented 1 year ago

Why not hot reload? It is definitely required...