1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Visual Studioで定義へ移動が使えなくなった時の対処法

Posted at

はじめに

Unityの開発でVisual Studioを使ってたらフリーズしてしまったので、再起動を・・・。
その後自分で作ったクラスやUnityのクラスやメソッドにジャンプできなくなって1時間くらい試行錯誤。

多くの時間を無駄にしたので、他で困ってる人のために解決方法を書いておきます。
なお、この解法はMacで行ったものですがWindowsも同様だと思います。

解決方法

  1. 現在開いているVisual Studioを閉じる。
  2. プロジェクト直下の.slnファイルが置かれているフォルダにアクセス。
  3. 隠しファイルを表示する。(Macの場合はComman+Shit+.を押す。)
  4. .vsフォルダと.vsconfigファイルの両方を削除
  5. Visual Studioを開く

これで解決しました。

余談

.slnファイルとか.csprojTempなどのファイルも削除したのですが何も変わりませんでした。
これらのファイルはVisual Studioの起動時に自動的に作られるので消えても問題がないようです。

参考

【VisualStudio使い方】Visual Studioで定義へ移動がグレーアウトした時の対策法
現在のバージョン(8.9.2)には.suoファイルは無かったので、おそらくその代わりのファイルだろうと思われる.vsを削除しました。

1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?