如何在Visual Studio 2017 ASP.NET Core 1.1.1中启动监视模式

编程入门 行业动态 更新时间:2024-10-26 07:30:29
本文介绍了如何在Visual Studio 2017 ASP.NET Core 1.1.1中启动监视模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我试图以如何观看文件更改使用Visual Studio ASP.NET Core ,但在较新的版本(内核1.1.1)中,我找不到launchSettings.json文件,那么放置设置在哪里?我安装了Microsoft.DotNet.Watcher.Tools,但在Visual Studio中没有监视"按钮.

I'm trying to run my web application in watch mode referring to How to watch for file changes "dotnet watch" with Visual Studio ASP.NET Core but in newer version (core 1.1.1) I can't find launchSettings.json file, so where put settings? I installed Microsoft.DotNet.Watcher.Tools but I don't have a button "watch" in Visual Studio.

推荐答案

您可以在解决方案资源管理器"的属性"菜单下找到launchSettings.json.您可以在其中添加观看"个人资料的设置.

You can find the launchSettings.json in the Solution Explorer under the menu Properties. There you can add the settings for your "watch" profile.

您可以添加以下配置文件设置:

You can add following profile settings:

"Watch": { "executablePath": "C:\\Program Files\\dotnet\\dotnet.exe", "commandLineArgs": "watch run", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } }

解决方案资源管理器中的launchSettings.json

更多推荐

如何在Visual Studio 2017 ASP.NET Core 1.1.1中启动监视模式

本文发布于:2023-11-14 02:47:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1586011.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模式   如何在   Studio   Visual   ASP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!