我有两个.NET Core 5.0 Razor页面模型项目,几乎完全相同,位于同一个解决方案中。这些项目已经停止运行了近4个月。
现在我希望进行一些更改。其中一个项目无法以调试模式运行。我一直收到以下错误:
{"tag":"dap.receive","timestamp":1625537078095,"metadata":{"connectionId":0,"message":{"type":"request","command":"launch","arguments":{"WebRoot":"xxxx\ApmtWeb\wwwroot","rootPath":"xxxx\ApmtWeb\wwwroot","__workspaceFolder":"xxxx\ApmtWeb\wwwroot","runtimeExecutable":"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe","runtimeArgs":[],"sourceMaps":true,"url":"http://localhost:5031/","trace":{"logFile":"yyyy\Temp\visualstudio-js-debugger.txt"},"port":54798,"launchUnelevated":false,"projectGuid":"cca052fc-e9e7-44d5-8299-28928d665223","userDataDir":"yyyy\Microsoft\VisualStudio\16.0_e9805624\WebTools\F17440DA_BBDA0153","breakOnLoad":true,"smartStep":true,"skipFiles":[],"showAsyncStacks":true,"timeout":10000,"cleanUp":"onlyTab","name":"Visual Studio launch configuration override","type":"pwa-msedge","request":"launch","continueOnDisconnect":true},"seq":2}},"level":0}
我的启动设置
"ApmtWeb": { "commandName": "Project", "dotnetRunMessages": "true", "launchBrowser": true, "applicationUrl": "http://localhost:5031", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } }
手动输入URLhttp://localhost:5031,可以查看我的网页,但之后会出现上述错误并强制关闭。
我的整个解决方案中没有任何关于http://localhost:54798的设置,并且进行全局搜索也找不到任何与54798相关的参考。