0
1

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 5 years have passed since last update.

Unity 2018.4.12f1でVisual Studio Community(for Mac) ver.7.7.4を使ってると途中でUnityEngineのnamespaceが見つかりません(could not be found)と急に言われる。

Posted at

表題の問題が発生し、コード補完もなにもあったもんじゃない状態になって途方にくれてましたが、インストール何度もし直したり、アップデートしようとするとVS自体が壊れるということで色々設定をいじってたところ、メニューバーの、

Project > Solution Options
で開いたダイアログの、

Source Code > .NET Naming Policies
の、

Associate namespaces with directory names
の下の、

Use default namespace as root
に、チェック入れたところとりあえず直りました。

ググっても全然情報ないので、備忘録代わりと、同現象で悩まれてる方の一助になればと思い記事に残してみます。
(理由も原理も、完全にこれで正しいかも疑問ですが。。)

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?