OmniSharp doesn't work with latest .NET 6 SDK
See original GitHub issueI tried .NET 6 Preview 5 and 6, on Windows and macOS. I get this error in the O# logs. As a result, I cannot use VS Code for C#.
Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK 'Microsoft.NET.SDK.WorkloadAutoImportPropsLocator' specified could not be found. C:\Program Files\dotnet\sdk\6.0.100-preview.5.21269.7\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.ImportWorkloads.props
Is this an O# or SDK issue?
No repro in VS 16.10 P4.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
VSCode Omnisharp server A .NET 6 SDK for x86_64 was ...
TLDR: Both .NET SDK versions and Visual Studion versions needed to be x64. Here was the exact error I was seeing in the...
Read more >NETSDK1045: The current .NET SDK does not support ...
Open the Solution Properties window (ctrl-click the solution in the Solution window and select Properties), select Build - General, and uncheck ...
Read more >Hello OmniSharp on .NET 6.0!
OmniSharp .NET 6.0 is published as framework dependent application, not a standalone application, meaning it requires .NET 6.0 SDK to be ...
Read more >No Intellisense in VS Code on Linux : r/dotnet
After installing omnisharp extension there is no changes. Intellisense won't output any .net types and its members. I've installed .net SDK ...
Read more >OmniSharp from Unstable, .NET 6.0.10 was not found
I have some trouble with version 1.38.2, which was in 22.05, so I declared that I wanted to use the version from unstable,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing as this is tracked in this issue: https://github.com/dotnet/core/issues/6278
I have it working with a later MSBuildSdkResolver.
lib/net472/
inside the NuGet package to.msbuild/Current/Bin/SdkResolvers/Microsoft.DotNet.MSBuildSdkResolver
inside of the directory where OmniSharp is extracted."omnisharp.path": "path-to-omnisharp\\omnisharp.exe",