A community member has associated this post with a similar question:
Get started using Visual Studio Code with Windows Subsystem for Linux
Only moderators can edit this content.
Visual Studio Code: The .NET Core SDK cannot be located.
[Error - 14:02:41] [LanguageServerProjectSystem] Exception thrown while loading /Users/.../.../NewAzureFunctions.csproj Microsoft.CodeAnalysis.MSBuild.Rpc.RemoteInvocationException: An exception of type System.InvalidOperationException was thrown: Failed to find all versions of .NET Core MSBuild. Call to hostfxr_resolve_sdk2. There may be more details in stderr.
at Microsoft.CodeAnalysis.MSBuild.Rpc.RpcClient.InvokeCoreAsync(Int32 targetObject, String methodName, List`1 parameters, Type expectedReturnType, CancellationToken cancellationToken) in /_/src/Workspaces/Core/MSBuild/Rpc/RpcClient.cs:line 148
at Microsoft.CodeAnalysis.MSBuild.Rpc.RpcClient.InvokeAsync[T](Int32 targetObject, String methodName, List`1 parameters, CancellationToken cancellationToken) in /_/src/Workspaces/Core/MSBuild/Rpc/RpcClient.cs:line 114
at Microsoft.CodeAnalysis.MSBuild.Rpc.RemoteBuildHost.LoadProjectFileAsync(String projectFilePath, String languageName, CancellationToken cancellationToken) in /_/src/Workspaces/Core/MSBuild/Rpc/RemoteBuildHost.cs:line 33
at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 227
I have already tried to install .NET 8.0 SDK x64 from this link: https://dotnet.microsoft.com/en-us/download/dotnet/sdk-for-vs-code?utm_source=vs-code&utm_medium=referral&utm_campaign=sdk-install
But I still get this error message. In addition, I don't know how to solve the other error messages. I have not used VS Code for some time and now I always get these error messages when I open VS Code Version 1.84.2 (Universal) on my iMac Intel Core i5. I use macOS Sonoma 14.1.2.
How can I solve the errors?