LoginSignup
6
2

More than 3 years have passed since last update.

Unity+VSCodeで「The reference assemblies for framework ".NETFramework,Version=*" were not found.」を解決する

Last updated at Posted at 2019-08-22

経緯

UnityのスクリプトエディタにVisual StudioでなくVSCodeを使う環境を構築していたところ、「.NET Framework 4.7.1のアセンブリ参照が見つからない」という旨のエラーが出てデバッグ実行できない状況になりました。解決したので、備忘録として残します。

Visual Studioがあれば解決できるようなのですが、私はVSCode環境を構築するのにVisual Studioを入れるのは嫌だったのでやってません。

エラーについて

下記のようなエラーです。本当はもっと長い。

The reference assemblies for framework ".NETFramework,Version=v4.7.1" were not found.

解決策 (2019/08/22)

  1. VSCodeが認識できてない.NET Frameworkのバージョンをメモ
  2. .NET Frameworkのダウンロードページから、メモしたバージョンのDeveloper Packをインストールする(私の場合は4.7.1)
    image.png

  3. UnityエディタとVSCodeを再起動

これで直りました。

参考

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