根据你的错误提示,我查了一下,给出了一个英文的注意事项提示:
Using .NET Core in Visual Studio Code
Note: VS Code does not support debugging applications running on the Desktop .NET Framework.
Due to this focus, many standard C# project types are not recognized by VS Code.
An example of a non-supported project type is an ASP.NET MVC Application (though ASP.NET Core is supported).
In these cases, if you want to have a lightweight tool to edit a file - VS Code has you covered.
If you want the best possible experience for those projects and development on Windows in general, we recommend you use Visual Studio Community.
注意:VS代码不支持调试在桌面上运行 .NET Framework 的应用程序。
由于这一点,许多标准的C#项目类型不能被VS代码识别。
不支持的项目类型的一个示例是 ASP.NETMVC 应用程序(尽管 ASP.NET 支持核心)。
如果您希望在Windows上实现这些项目和开发的最佳体验,建议您使用 visual studio 社区版。