Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OmniSharp Error: Found dotnet version 5.0.201. Minimum required version is 6.0.100

Tags:

omnisharp

I use VS Code as my IDE. Today I saw in my C# files that I could no longer use things like "Go To Definition/Implementations" or hover over anything to get the path/type etc.

I found my Omnisharp console and saw they updated last night and there is an error:

Error: Found dotnet version 5.0.201. Minimum required version is 6.0.100.

I can't upgrade my dotnet because 6.0 is not compatible with the runtime in my project and on Mac M1, there are a lot of issues running multiple dotnet instances..

I guess its a bit of a rock and a hard place, anyone know how I can get around this issue?

like image 634
MambaForever Avatar asked Sep 06 '25 03:09

MambaForever


2 Answers

This is a recent update to Omnisharp, which is used by the VS Code C# extension. Add this to your settings and restart the editor.

    "omnisharp.useModernNet": false,
    "omnisharp.path": "",

Also if you don't have Visual Studio installed you will likely need to install the Build Tools to get MSBuild: enter image description here

My understanding of the rationale behind this change is an optimization for modern vanilla c# projects over those using older versions (ie Unity). More info in this issue.

like image 191
Peter Hayman Avatar answered Sep 07 '25 21:09

Peter Hayman


Revert your Omnisharp to previous version

enter image description here

like image 37
CSharp Avatar answered Sep 07 '25 22:09

CSharp