The C# plugin in VS Code seems abnormal
Recently started a new C# project, thinking of dividing multiple projects by folders, putting a solution in the root directory. But when opening in VS Code, the reference information and hints in the project source code are not normal. Confused, I’ve always used it this way, shouldn’t there be any problem.
Searched and found that some friends also encountered similar problems.
- [VS Code] Fix C# code F12 invalid
- VSCode C# Go to Definition (F12) and Ctrl+Left Click Invalid Solution
Basically, the OmniSharp plugin is not working properly, need to specify manually. But…
Naturally, this method is useless.
However.
dotnet/vscode-csharp is now officially supported.
A Visual Studio Code extension that provides rich language support for C# and is shipped along with C# Dev Kit. Powered by a Language Server Protocol (LSP) server, this extension integrates with open source components like Roslyn and Razor to provide rich type information and a faster, more reliable C# experience.
So, does that mean I should install this thing?
Finally verified, it’s indeed like this. The C# Dev Kit plugin supports loading sln, after installing, manually confirm which sln file. Everything back to normal.
Done.
