少し古いUnityのプロジェクトをVSCodeで開いたところ、Unityのコード補完が効かない。
エラー
The current workspace is using an obsolete version of .NET SDK '5.0.400', which is not supported. The C# Dev Kit extension may not work correctly. Please update the computer and potentially global.json file to use a more recent version of .NET SDK.
解決策
Turn Off Notifications from C# Dev Kitを選択して再起動。
C# DevKitのエラーらしい?
C# Dev KitをDisableしなくても治った。
Turn Off Notificationなので通知を無効にするだけで治ったのが謎。
環境
Unity 2021.3.8
VScode 1.86.1
VSCode 拡張機能
- C# Dev Kit v1.3.10
- Unity v0.9.4