-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It was not possible to find any installed .NET SDKs
and lots of other OmniSharp errors
#6278
Comments
Nothing ? I've seen this issue a ton of times on this repo and still no fix has been found. |
/cc @wli3 @dsplaisted looks like an SDK installation issue, can you handle? |
@dsplaisted this is fixed right? |
If you confirm that it's fixed then let us know what version of VS Code contains / will contain the fix and feel free to close this issue. Thanks! :) |
This was fixed for Visual Studio. I'm not sure how the MSBuild SDK resolver that VS Code or Omnisharp uses gets updated. @DustinCampbell Do you know what the process for this is? The resolver needs to be updated to include the changes from dotnet/sdk#17329 (and prior changes, such as dotnet/sdk#16414). |
@dsplaisted I think it's defined here: https://github.com/OmniSharp/omnisharp-roslyn/blob/a13040712d02fa10bfb6c5847011bfc251de712d/tools/packages.config#L17 @JoeRobich, think we can update that? @dsplaisted, will 6.0.100-preview4 be sufficient? It looks like OmniSharp uses .NET SDK as a version source of truth rather than VS. |
@rainersigwald Happy to get this updated. https://github.com/OmniSharp/omnisharp-roslyn/pull/2159/files |
@GeorgeFlorian Merged in an update of OmniSharp's included build tools. If you set |
Do we know when this fix will be available on VSCode and should we mention it in the .NET 6 preview 4 release notes if the fix won't be out before then? |
@marcpopMSFT We are in the middle of validating a new release. Happy to bring this change in. |
What's process (including tests) that we can use to avoid this in future. It has happened before. |
Every time the SDK updates it's minimum MSBuild required version number, O# will have to update the version of MSBuild. They can query directly in the SDK branch or we can have someone on the breaking change email track this. Open to suggestions. We will do this 1-2 times a year. |
Is this just a missing checklist item then? |
Where can I find |
@GeorgeFlorian We've published an updated version 1.23.12 which contains the latest toolset. Please let us know if it resolves the issue you are seeing. |
@JoeRobich I had the same problem and I can confirm that upgrading to version v1.23.12 solved it. |
Omnisharp is giving me this error in visual studio code on Ubuntu 20.04, despite using v1.23.12 of the csharp extension. I'm afraid this is because I have a snap installation of dotnet sdk instead of using microsoft's apt repo... is it possible to point the extension to my install location? Or will I have to switch to the apt install? |
@paigeweber13 Many users report that running |
Issue
Console.ReadLine();
reads input forever.OmniSharp:
It was not possible to find any installed .NET SDKs
.System Info
Description
I've installed .NET SDK following this instructions: https://docs.microsoft.com/en-us/dotnet/core/install/linux-snap
I've then went and made a simple C# program:
VSC terminal outputs:
Debug Console in which I can input forever:
Output:
I've seen similar issues but couldn't find a fix. One of them was this line which didn't do a thing.
whereis dotnet
returnsdotnet: /usr/share/dotnet /snap/bin/dotnet
What do you guys think ?
The text was updated successfully, but these errors were encountered: