.net core 修改启动设置后出错:启动配置文件";(违约)“;无法应用

.net core 修改启动设置后出错:启动配置文件";(违约)“;无法应用,.net-core,visual-studio-2019,.net-5,.net Core,Visual Studio 2019,.net 5,我正在将我的项目设置为在Visual Studio 2019 Preview 16.9.0下的launchSettings.json中使用dotnet watch run 下面是我的launchSettings.json { “概况”:{ “我的网站”:{ “命令名”:“可执行文件”, “可执行路径”:“dotnet”, “commandLineArgs”:“观看跑步”, “工作目录”:“$(ProjectDir)”, “启动浏览器”:正确, “环境变量”:{ “ASPNETCORE_环境”:“

我正在将我的项目设置为在Visual Studio 2019 Preview 16.9.0下的launchSettings.json中使用dotnet watch run

下面是我的
launchSettings.json

{
“概况”:{
“我的网站”:{
“命令名”:“可执行文件”,
“可执行路径”:“dotnet”,
“commandLineArgs”:“观看跑步”,
“工作目录”:“$(ProjectDir)”,
“启动浏览器”:正确,
“环境变量”:{
“ASPNETCORE_环境”:“开发”
},
“dotnetRunMessages”:“true”,
“应用程序URL”:https://localhost:5001;http://localhost:5000"
}
}
}
这是我按下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
我不明白为什么我会有这样的信息:

The launch profile "(Default)" could not be applied.
A usable launch profile could not be located.
根据这个解决方案,这是不应该发生的


如何排除此消息的故障?

好的,只需更改配置文件名即可解决此问题。。。不知道为什么会这样。