The dreaded VS Code throws a variety of errors.

Especially when using on Mac, an error occurs as the C# extension for VS Code was recently updated.

The error details are as follows.

Exception thrown while loading d:\Project\SCL_2023\Assembly-CSharp.csproj StreamJsonRpc.RemoteInvocationException: Sequence does not contain any elements. at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject) at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, BuildHost inProcessBuildHost, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 241RPC server exception:System.InvalidOperationException: Sequence does not contain any elements. 위치: System.Linq.Enumerable.First[TSource](IEnumerable`1 source) 위치: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost.EnsureMSBuildLoaded(String projectFilePath) 위치: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost.IsProjectFileSupportedAsync(String projectFilePath, CancellationToken cancellationToken)

The solution is simple: just roll back the C# extension to version v2.1.2.

As shown below, in the extension selection section, select Install Another Version from the Uninstall part on the right side of C#.

And select the previous stable version, 2.1.2.

Then you can confirm that compilation works properly in Unity.

Completed (re)load of all projects in 00:00:00.3102955

Clean~~