Swe*_*ell 8 .net-core visual-studio-2019 .net-5
我正在将我的项目设置为使用 dotnet watch 在 Visual Studio 2019 Preview 16.9.0 下的 launchSettings.json 中运行
下面是我的launchSettings.json
{
"profiles": {
"MyWebsite": {
"commandName": "Executable",
"executablePath": "dotnet",
"commandLineArgs": "watch run",
"workingDirectory": "$(ProjectDir)",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": "true",
"applicationUrl": "https://localhost:5001;http://localhost:5000"
}
}
}
Run Code Online (Sandbox Code Playgroud)
这是我点击时的输出CTRL+F5
watch : Started
The launch profile "(Default)" could not be applied.
A usable launch profile could not be located.
[17:38:49 INF] Starting up
[17:38:49 INF] User profile is available. Using 'C:\Users\MyUser\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
[17:38:50 INF] Now listening on: http://localhost:5000
[17:38:50 INF] Now listening on: https://localhost:5001
[17:38:50 INF] Application started. Press Ctrl+C to shut down.
[17:38:50 INF] Hosting environment: Development
[17:38:50 INF] Content root path: C:\dev\MyWebsite\src\MyWebsite
Run Code Online (Sandbox Code Playgroud)
我不明白为什么我会收到此消息:
The launch profile "(Default)" could not be applied.
A usable launch profile could not be located.
Run Code Online (Sandbox Code Playgroud)
根据此解决方案/sf/answers/4596649291/,这是不应该发生的。
如何解决此消息?
小智 6
只是改变
"MyWebsite": { "commandName": "可执行文件",
到
"我的网站": { "commandName": "项目",
| 归档时间: |
|
| 查看次数: |
9391 次 |
| 最近记录: |