启动浏览器';调用asp.net核心项目的启动配置文件时无法工作
当我运行“dotnet watch run--launch profile watch”时,项目启动,但没有启动浏览器 launchSettings.json,profile观看:启动浏览器';调用asp.net核心项目的启动配置文件时无法工作,.net,visual-studio,asp.net-core,configuration,dotnet-cli,.net,Visual Studio,Asp.net Core,Configuration,Dotnet Cli,当我运行“dotnet watch run--launch profile watch”时,项目启动,但没有启动浏览器 launchSettings.json,profile观看: "Watch": { "commandName": "Project", "executablePath": "C:\\Program Files\\dotnet\\dotnet.exe", "workingDirectory": "$(ProjectDir)", "launchBrowser": t
"Watch": {
"commandName": "Project",
"executablePath": "C:\\Program Files\\dotnet\\dotnet.exe",
"workingDirectory": "$(ProjectDir)",
"launchBrowser": true,
"launchUrl": "https://localhost:5001/",
"applicationUrl": "https://localhost:5001/",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
添加此“commandLineArgs”:“观看跑步”,以及check@HameedSyed我试过了,没什么区别。我最终直接执行dotnet,而不是通过启动概要文件执行。visual studio代码存在此问题,但在visual studio中运行良好。