How do I fix the error in .Net Core 3.0 project in Visual Studio Code?
I have downloaded the .NET Core 3.0 SDK from created new project with dotnet new command in a folder.
Opening the project with Visual Studio Code gives the following error:
[fail]: OmniSharp.MSBuild.ProjectLoader The current .NET SDK does not support targeting .NET Core 3.0. Either target .NET Core 2.2 or lower, or use a version of the .NET SDK that supports .NET Core 3.0. [warn]: OmniSharp.MSBuild.ProjectManager Failed to load project file 'c:\Users\Marco\source\Workspaces\WebDevelopment\Samples\hello-world\hello-world.csproj'. c:\Users\Marco\source\Workspaces\WebDevelopment\Samples\hello-world\hello-world.csproj C:\Program Files\dotnet\sdk\2.2.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(137,5): Error: The current .NET SDK does not support targeting .NET Core 3.0. Either target .NET Core 2.2 or lower, or use a version of the .NET SDK that supports .NET Core 3.0.
[fail]: OmniSharp.MSBuild.ProjectManager Attemped to update project that is not loaded: c:\Users\Marco\source\Workspaces\WebDevelopment\Samples\hello-world\hello-world.csproj
.NET Core SDK 3.0.100-preview-010184
? Try to run commanddotnet --version
to see the current sdk. I made a test with VS Code, it opens the project correctly. – Edward