gpt4 book ai didi

asp.net-core - 为什么我在 Visual Studio Code 中显示了这么多 "Problems",做例程教程?

转载 作者:行者123 更新时间:2023-12-05 06:35:52 24 4
gpt4 key购买 nike

我正在按照此 official tutorial to Create a Web API with ASP.NET Core and VS Code 中的说明进行操作.

我安装了最新的 .NET Core SDK (v2.1.101) 以及 VS Code 的 C# 扩展。

在 VS Code 中打开项目文件夹后,VS Code 的“问题”窗口中会显示 100 多个问题。请看下图。随着我向项目中添加代码,问题的数量也在增加。

为什么我看到这么多问题,我该如何解决?

请注意,我尝试了 dotnet restore,但没有成功。

还知道我将 Bash on Windows Subsystem for Linux 配置为 VS 代码终端的 shell。 (我还在 WSL 中安装了最新的 .NET Code SDK)

enter image description here

最佳答案

根据 OP 评论:

I've returned VS Code to the default terminal shell (cmd.exe) by removing this line from user settings: "terminal.integrated.shell.windows": "C:\\WINDOWS\\Sysnative\\bash.exe", . Having restarted VS Code all "problems" are now gone

关于asp.net-core - 为什么我在 Visual Studio Code 中显示了这么多 "Problems",做例程教程?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49458476/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com