.net - Is there any way to reload an asp.net core application using dotnet-cli?
问题描述
I am using visual code and I am looking to reload the web application once I make any changes within my MVC code files. I know we can Ctrl+C to shutdown the app and and then reload by typing dotnet run
.
Is there any faster like we had nodemon in NodeJS web application development?
解决方案
You can use dotnet build
to build your application and then dotnet watch run
to run it.
You might need dotnet restore
to restore all the NuGet packages.
For more details check this documentation: https://docs.microsoft.com/en-us/dotnet/core/tools/?tabs=netcore2x
推荐阅读
- node.js - 授权期间检查令牌的中间件
- c# - C# LINQ 'GroupBy' 运算符用法
- windows - 在 Windows 10 中激活 HDR 的 Powershell 脚本
- reactjs - Accessing child's state from another child?
- python - 脚本无法完全运行:JSON 到 EXCEL Python 脚本
- javascript - 谁能解释 V8 字节码 SwitchOnGeneratorState?
- python - ValueError:检查输入时出错:预期dense_10_input有2维,但得到的数组形状为(60000、28、28)
- c# - 这是一种什么样的加密方法?
- sql - 使用动态列名和值改进 sql 代码
- linux - 我将如何生成随机数量的进程和优先级?