首页 > 解决方案 > 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?

标签: .netasp.net-mvcasp.net-core

解决方案


You can use dotnet build to build your application and then dotnet watch run to run it.
You might need dotnet restoreto restore all the NuGet packages.

For more details check this documentation: https://docs.microsoft.com/en-us/dotnet/core/tools/?tabs=netcore2x


推荐阅读