-
Notifications
You must be signed in to change notification settings - Fork 26
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
How to docker-compose using "dotnet watch run" in container #217
Comments
@roussakov Unfortunately this isn't possible with the tooling. We use a lot of optimizations in debug mode that are incompatible with |
@bwateratmsft So does it means that it is impossible to edit a cshtml page and having that change reflected on a refresh with docker-compose ? |
@amarant Not necessarily; the edit-refresh scenario is kind of scattered depending on .NET Core version and container OS. @pratiksanglikar can probably list which ones work. In debug mode, we map in the source and binaries built on the host. In release mode, source is copied in, and built in the SDK container. So, it would never work in release mode, but can in debug. |
@bwateratmsft Thanks a lot for your answer. |
Hi @roussakov , @amarant
After making the above-mentioned changes, Edit and refresh works for both Linux and Windows containers. Also, this would work when editing *.cshtml files but not while editing *.cs files. |
This solution is working locally, but when publishing to Azure it's not working. |
Hi guys,
I'm trying to set up a docker-compose stack using visual studio 2017 docker tooling.
And unable to find the way how to run the app inside a container using dotnet watch run
any suggestions?
Thanks!
The text was updated successfully, but these errors were encountered: