LoginSignup
7
5

More than 3 years have passed since last update.

Unityで突然Visual Studioがusingエラーで見つかりません等のエラーを吐き出した時の解決

Posted at

症状

タイトルの通り、UnityでVisual Studioを使って開発中に、usingが突然効かなくなりビルドエラーが大量に発生しました。

環境

  • Visual Studio 2019 Ver 16.8.3
  • Unity 2020.2.2f1

解決策を試す

解決策1: 再起動

UnityとVSを再起動する。

解決せず。

解決策2: VSバージョン更新

Visual Studioの更新を確認したところ、更新できるのでバージョンを上げる。

Ver 16.8.3Ver 16.8.5

解決せず。

解決策3: .csproj .slnファイルの削除

Unityフォルダ内の以下のファイルを削除してVisual Studioを立ち上げる。

  • Assembly-CSharp.csproj
  • (プロジェクト名).sln

→解決した!!

参考にしたページ

7
5
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
7
5