VSCODEに.NETCoreSDKをぶちこむ
pulished:
VSCodeに出たエラー
The .NET Core SDK cannot be located: A valid dotnet installation could not be found. .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path.
参考
- stack overflow: The .NET Core SDK cannot be located. .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path
やったこと
- Path調べる
調べる:
dotnet --list-sdks
結果:
6.0.100 [/usr/local/share/dotnet/sdk]
6.0.400 [/usr/local/share/dotnet/sdk]
7.0.102 [/usr/local/share/dotnet/sdk]
- VSCodeのSetting確認
setting.json
に下記書かれているかチェック
"omnisharp.dotnetPath": "/usr/local/share/dotnet",
"omnisharp.sdkPath": "/usr/local/share/dotnet/sdk",
以上でパス通ってるはず。