今天测试了一下发现ASP.NET Core可以一边运行一边修改C#代码, 保存代码,刷新网页,新代码就生效,而不用重新编译生成。
因为在微软文档看到 。测试发现是真的。前提是Ctrl+F5,以及使用IIS Express运行ASP.NET Core的网站。
In Visual Studio 2015, when you are running in IIS Express without debugging (Ctl+F5), you don’t need to build the app after changing the code. Just save the file, refresh your browser and you can see the changes.