更新时间:2023-02-12 22:56:35
您可能正在使用Visual Studio,并且在单击debug时可能正在积极编辑.cshtml页面.
You are probably using Visual Studio and you probably are actively editing a .cshtml page when you hit debug.
当您查看代码文件或启动项目中未存在的项目(即EF/model项目)中的文件时,请尝试启动调试器,并查看是否将调试器启动到正确的URL
Try launching the debugger when you are either looking at a code file or a file from a project that isn't in the startup project (ie, your EF/model project) and see if that launches the debugger to the correct URL.
项目属性中可能会有一个指定启动URL的设置.我会寻找它,并在找到该帖子后对其进行编辑.
There might be a setting in the project properties that specifies the startup URL. I'll look for it and edit this post if I find it.