Featured image of post VS Code Support for C# Solution Files

VS Code Support for C# Solution Files

VSCode, C#, Solution Files

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.

Basically, the OmniSharp plugin is not working properly, need to specify manually. But…

omnisharp-vscode: This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

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?

C# Dev Kit

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.

Built with Hugo
Theme Stack designed by Jimmy