You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Visual Studio Code加载C#项目进程失败求助

问题描述

Visual Studio Code问题截图

在Visual Studio Code(VSC)恢复上次会话时选择拒绝后,出现了上述问题。本人对C#语言及.NET环境了解有限,已尝试使用命令 dotnet new sln 创建新的解决方案,但问题仍持续存在。

注:来自阿根廷,英语不好。

解决建议
  • 重置VS Code工作区设置:
    1. 按下Ctrl+Shift+P(Windows/Linux)或Cmd+Shift+P(Mac)打开命令面板
    2. 输入Preferences: Open Workspace Settings (JSON)并回车
    3. 删除该JSON文件内的所有内容,保存后重启VS Code
  • 清除C#扩展缓存:
    1. 关闭VS Code
    2. 删除对应路径下的缓存文件夹:
      • Windows: %USERPROFILE%\.vscode\extensions\ms-dotnettools.csharp-*\omnisharp\cache
      • Mac: ~/.vscode/extensions/ms-dotnettools.csharp-*/omnisharp/cache
      • Linux: ~/.vscode/extensions/ms-dotnettools.csharp-*/omnisharp/cache
    3. 重新打开VS Code,等待C#扩展完成加载
  • 重新加载项目:
    打开命令面板,输入C#: Reload Project并执行,让扩展重新识别项目文件
  • 检查.NET SDK:
    在终端执行dotnet --list-sdks,确认已安装对应版本的.NET SDK,若未安装则下载对应版本安装

内容的提问来源于stack exchange,提问作者Germii

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.30 12:44:55