Answer a question

It seems the current version(s) of VScode can not automatically identify Mono path by default causing failure to execute Omnisharp(Intellisense not working, etc). It seems the issue appeared in version 1.55.1 and after some digging, most people suggested that reverting your updates is the only option to fix this. If you look at the log (command + shift + U), you'll see the following error:

[ERROR] Error: Unable to find Mono. Ensure that Mono's '/bin' folder is added to your environment's PATH variable.

Is there an alternative to fix the issue without reverting to the previous VScode version?

Answers

A simple solution would be to add the following parameters to your VScode setting.json file.

"omnisharp.useGlobalMono": "always",
"omnisharp.monoPath": "/Library/Frameworks/Mono.framework/Versions/Current"

Make sure to see if Mono is actually installed on your system and the path is correct.

Logo

开发云社区提供前沿行业资讯和优质的学习知识,同时提供优质稳定、价格优惠的云主机、数据库、网络、云储存等云服务产品