简体   繁体   English

C# 和 VSCode - OmniSharp 不适用于多项目工作区

[英]C# & VSCode - OmniSharp not working for multi project workspace

VSC is acting a bit weird and I can't figure out how to fix it. VSC 的行为有点奇怪,我不知道如何解决它。 I am doing a tutorial and currently, I have multiple files with the same code.我正在做一个教程,目前,我有多个具有相同代码的文件。 What I can't understand is why one of the files is showing "Problemns" and is highlithing them in the code and the other one doesn't.我无法理解的是为什么其中一个文件显示“问题”并在代码中突出显示它们而另一个没有。

Also in the 2nd file, even the breadcrumbs are missing.同样在第二个文件中,甚至缺少面包屑。

1st file第一个文件

在此处输入图像描述

2nd file第二个文件

在此处输入图像描述

OK, so it seems that this is due to the fact that at this moment OmniSharp does not Multi Project support.好的,所以这似乎是因为此时 OmniSharp 不支持多项目。 Each time you want autocomplete and error reporting in a folder from your workspace you need to manually change your OmniSharp folder from here:每次您想要在工作区中的文件夹中自动完成和错误报告时,您需要从这里手动更改您的 OmniSharp 文件夹: 在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当 select 第二个项目时,在 VsCode C# (Omnisharp) 中出现错误 - Getting error in VsCode C# (Omnisharp) when select the second project c# omnisharp intellisense 不适用于 vscode 中的 net 5.0(Windows 10) - c# omnisharp intellisense not working with net 5.0 in vscode (windows 10) 加载统一 C# 脚本时,如何修复 VSCode 中的 IntelliSense 不起作用和 OmniSharp 错误消息? - How do I to fix IntelliSense in VSCode not working and OmniSharp error messages when loading unity C# scripts? Omnisharp C# 无法在带有 Unity 的 Ubuntu 22.04 上运行 - Omnisharp C# Not Working on Ubuntu 22.04 with Unity Intellisense 在 VSCode 中不起作用 - OmniSharp 错误 - Intellisense not working in VSCode - OmniSharp Error VSCode OmniSharp / C#intellisense没有看到Ionide / F#lib模块/命名空间 - VSCode OmniSharp/C# intellisense does not see Ionide/F# lib modules/namespaces VSCode 智能感知不适用于解决方案下的一个 c# 项目 - VSCode intellisense not working for one c# project under the solution 这个 Omnisharp 错误不允许我用 C# 开始我的第一个 Godot 项目 - This Omnisharp error don't let me start my first Godot project with C# VScode 中的 Unity intellisense 不工作,Omnisharp 给出多个错误和警告 - Unity intellisense in VScode not working and Omnisharp is giving multiple errors and warnings OmniSharp 格式化程序不格式化 C# 文件 - OmniSharp formatter does not format C# files
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM