question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OmniSharp doesn't work with latest .NET 6 SDK

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
marcpopMSFTcommented, May 25, 2021

Closing as this is tracked in this issue: https://github.com/dotnet/core/issues/6278

2reactions
snicklercommented, May 23, 2021

I have it working with a later MSBuildSdkResolver.

  1. Download and extract the latest omnisharp-roslyn release for your OS-arch and extract it to a directory
  2. Grab Microsoft.DotNet.MSBuildSdkResolver 6.0.100-preview.4.21254.26 from the dnceng Azure Artifacts
  3. Extract the contents from lib/net472/ inside the NuGet package to .msbuild/Current/Bin/SdkResolvers/Microsoft.DotNet.MSBuildSdkResolver inside of the directory where OmniSharp is extracted.
  4. Edit the Omnisharp VSCode plugin settings and set "omnisharp.path": "path-to-omnisharp\\omnisharp.exe",
  5. Restart the Omnisharp extension
  6. Enjoy
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found