We use Visual Studio and DNX code as follows.
Command line to start the web server
dnx . web
project.json> teams
"web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.urls http://localhost:5001"
Please note that we added carriages for readability.
When *.cshtml and the browser is updated, the changes are displayed in the browser. It's good.
When we change a *.cs and update the browser, the changes are not displayed in the browser. We expected them to do this. To see the changes, we need to stop the web server (with Ctrl + C on the command line) and then start it again using dnx . web dnx . web .
This is not the end of the world; what I said that one of the features of ASP.NET 5 is the ability to update without recompiling, etc.
How can we change the *.cs code and update the browser to view the changes without restarting the DNX web server?
We tried to run dnx --watch . web dnx --watch . web with the problem that if we change the *.cs file, the web server will stop, and we still need to restart it.
source share