Reputation: 4149
After accidentally deleting a project via the Source Control area of VSCode Omnisharp stopped working altogether. Nothing works on any previous project and any newly created projects. Everything works just fine on Visual Studio so I assume the problem isn't with the .NET Core installation. I'm on a Mac.
"message": "The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?) [API, API, API]"
What I've tried:
Any help is appreciated, thanks!
Upvotes: 2
Views: 6660
Reputation: 7640
Following these steps helped me to solve the issue:
* Go to the VSCode settings (File > Preferences > Settings).
* Search with the keywords omnisharp use global mono to locate the configuration.
* Change the value to never from either auto or always.
* REMEMBER to restart the VSCode to activate the change (I restarted it twice to be sure).
Upvotes: 7