简体   繁体   English

有没有调试模式运行.net核心Web应用程序的方法?

[英]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 ,这样您就可以在“监视模式”下启动后端代码...

  1. Add Microsoft.DotNet.Watcher.Tools to the tools section of the project.json file. Microsoft.DotNet.Watcher.Tools添加到project.json文件的tools部分。
  2. Run dotnet restore . 运行dotnet restore
  3. Run with dotnet watch run 运行dotnet watch run
  4. Check the link above for further details 查看上面的链接了解更多详情

Then for your frontend code you can do as suggested by Michel Amorosa 然后根据Michel Amorosa的建议,您可以按照前端代码进行操作

您可以使用Gulp配置自动更改,有人在此解释: 查看代码更改而不重新启动服务器

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有什么方法可以在Linux容器中运行.NET Core App? - Is there any way to run a .NET Core App inside a Linux container? 有没有办法让客户端连接到现有的 WCF Web Http 服务而不使用 WebHttpBinding in.Net Core 2? - Is there any way to have a client connect to an existing WCF Web Http Service without using WebHttpBinding in .Net Core 2? 使用 dotnet run 时如何调试 .NET 核心控制台应用程序 - How to Debug a .NET Core Console App When Using dotnet run 有没有办法创建没有任何代理的真正的自托管.Net(Core)wepApp - Is there way to create a true selfhosted .Net ( Core) wepApp without any proxy Mac上的Visual Studio进入调试模式而没有断点,ASP.NET Core提出了不寻常的建议 - Visual Studio on Mac enters debug mode without a breakpoint with an unusual recommendation for ASP.NET Core 有什么方法可以在服务器上运行asp.net Web浏览器控件吗? - Is there any way to run asp.net web browser control on server? 在运行时检查asp.net Web应用程序是否处于调试模式的首选方法? - A preferred way to check if asp.net web application is in debug mode during runtime? 创建没有后台服务的 .NET Core 控制台应用程序的“正确”方法 - The “correct” way to create a .NET Core console app without background services 与.NET Core包进行调试和发布运行的区别 - Difference with .NET Core packages for Debug and Publish run 如何在 AWS 中将我的 ASP.NET Core 5 MVC web 应用程序切换到开发模式 - How to switch my ASP.NET Core 5 MVC web app to development mode while in AWS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM