本文介绍了如何在Visual Studio 2017 ASP.NET Core 1.1.1中启动监视模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图以,但在较新的版本(内核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中启动监视模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-29 00:55
查看更多