LoginSignup
4
0

More than 1 year has passed since last update.

VSCodeを開いたらOmniSharpのエラーが発生した

Posted at

ある日、VS Codeを開くと、以下のエラーメッセージが表示されました!

image.png

OmniSharp requires an install of the .NET SDK to provide language services when omnisharp.useModernNet is enabled in Settings. Please install the latest .NET SDK and restart vscode. If you continue see this error after installing .NET and restarting vscode, you may need to log out and back in or restart your system for changes to the PATH to take effect.

どうやら、.NET SDKを最新版に更新しないと、OmniSharpが利用できないようです!

OmniSharpってなんだっけ!?

VS Codeの拡張機能 C# の開発コミュニティがOmniSharpみたいです!

image.png

過去にVS CodeでUnityプロジェクトを開いたことがあったので、その時に拡張機能 C# をインストールしていたのでした。

拡張機能 C# の説明文を読むと、どうやら .NET SDK 6以上が必要みたいです!

image.png

.NET SDK 7 をインストールしてみる

Microsoftの公式サイトから .NET SDK 7のインストーラーをダウンロードします!

インストーラーの指示にしたがってインストールします。

image.png

VS Codeを再起動してみる

VS Codeを再起動したら、エラーメッセージが表示されなくなりました!

4
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
0