简体   繁体   中英

namespace can't be found by omnisharp even though unity builds

I am using vscode to edit unity scripts, I've added Mirror for needs, which extends its own namespace, but the problem is that omnisharp can't find it's namespace. All Mirror's files are under Assets/Thirdparty/Mirror

Everything works in terms of compiling and the result, but I have no idea how omnisharp works and how to configure it.

Below you can see waving lines at everything that is extended by the namespace.

文本

Sometimes I have that too, especially when I just updated VS Code or added a package in Unity. And sometimes this helps: 在此处输入图像描述

Press the Regenerate project files button in Project Preferences .

For me installing .NET Framework 4.7.1 Developer Pack fixed the problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM