[英]Any way to run .net core web app without debug mode?
I am developing a asp.net core web application in visual studio 2015 update 3. 我正在visual studio 2015 update 3中开发一个asp.net核心Web应用程序。
Every time i have to check for the update in browser i have to either F5 the app which takes time or if i run "start without debugging" i get build error of unable to access "aspnet core identity dll" that is used by some process. 每次我必须在浏览器中检查更新我必须要么F5应用程序需要时间或如果我运行“开始没有调试”我得到生成错误无法访问某些进程使用的“aspnet核心标识DLL” 。
In asp.net mvc app i could just build app and then check in browser without having to F5 or Ctrl F5 which takes time. 在asp.net mvc应用程序中,我可以构建应用程序,然后检查浏览器,而无需F5或Ctrl F5需要时间。
Is there any way i could just make changes in code then just build app and check in browser rather than to run in debug mode ? 有什么方法我可以只在代码中进行更改然后只是构建应用程序并检查浏览器而不是在调试模式下运行?
Microsoft created a "watch" tool that you can add to your project.json
which enables you to start the backend code in "watch mode"... Microsoft创建了一个“监视”工具 ,您可以将其添加到
project.json
,这样您就可以在“监视模式”下启动后端代码...
Microsoft.DotNet.Watcher.Tools
to the tools
section of the project.json
file. Microsoft.DotNet.Watcher.Tools
添加到project.json
文件的tools
部分。 dotnet restore
. dotnet restore
。 dotnet watch run
dotnet watch run
Then for your frontend code you can do as suggested by Michel Amorosa 然后根据Michel Amorosa的建议,您可以按照前端代码进行操作
您可以使用Gulp配置自动更改,有人在此解释: 查看代码更改而不重新启动服务器
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.