Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The SDK 'Microsoft.NET.Sdk.Web' specified could not be found in VSCode OmniSharp extension

I've installed dotnet core 3 sdk and OmniSharp 1.18 extension on VSCode but OmniSharp has an error: Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK 'Microsoft.NET.Sdk.Web' specified could not be found.

like image 307
arsmn Avatar asked Feb 26 '19 13:02

arsmn


1 Answers

Try the workaround solution bellow:

Add a file called omnisharp.json to your project folder with following content

{
    "MsBuild": {
        "UseLegacySdkResolver": true
    }
}

Then restart the Visual Studio Code

like image 87
Sang Au Avatar answered Oct 05 '22 01:10

Sang Au