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

2.4k views Asked by At

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.

Text

2

There are 2 answers

6
frankhermes On

Sometimes I have that too, especially when I just updated VS Code or added a package in Unity. And sometimes this helps: enter image description here

Press the Regenerate project files button in Project Preferences.

0
Yusufbek On

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