.NET Core 3: The SDK 'Microsoft.NET.Sdk' specified could not be found. [Ubuntu 19.04]
在最新版本的VSCode C#擴展中問題已被修復
在Ubuntu19.04上安裝.NET Core3.0後出現這樣的情況 (是VSCode, VS請繞過)
.NET Core 3: The SDK 'Microsoft.NET.Sdk' specified could not be found
然後是大江南北的 姨媽紅
在項目目錄下添加 global.json (不知道VSCode怎麼新建文件的可以私信我), 內容如下:
{
"sdk": {
"version": "3.0.100"
}
}
然後再在項目目錄 添加 omnisharp.json, 內容如下 :
{
"MSBuild": {
"UseLegacySdkResolver": true
}
}
然後dotnet restore , VSCode 關閉打開, 不行多關閉打開幾次,
開源萬歲
.NET Core 3: The SDK 'Microsoft.NET.Sdk' specified could not be found. [Ubuntu 19.04]