skip to Main Content

OS: Ubuntu 22.04.1 LTS
OS Type: 64-bit
GNOME Version: 42.4
Unity Editor Version: 2021.3.13f1


Error:

OmniSharp requires a complete install of Mono (including MSBuild) to
provide languages services when `omnisharp.useModernNet` is disabled
in Settings. Please install the latest Mono and restart.

I am using the Unity Engine on Ubuntu and installed VS Code to develop my games.
Every time I try to open my project on VS Code, this message pops up:

enter image description here

Everything was fine and running correctly until I installed and ran LXDE for a better performance.
I switched back to GNOME and removed LXDE completely, still didn’t work.

My currently installed tools & extensions are:

salah@salah-ub:~$ mono --version
Mono JIT compiler version 6.12.0.182 (tarball Tue Jun 14 22:35:00 UTC 2022)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug 
    Interpreter:   yes
    LLVM:          yes(610)
    Suspend:       hybrid
    GC:            sgen (concurrent by default)
salah@salah-ub:~$ msbuild --version
Microsoft (R) Build Engine version 17.0.0 for Mono
Copyright (C) Microsoft Corporation. All rights reserved.

17.0.0.25701
salah@salah-ub:~$ dotnet --version
6.0.110

And my settings:

"omnisharp.path": "latest",
"omnisharp.useModernNet": false,
"omnisharp.monoPath": "/usr/bin/mono"

2

Answers


  1. Chosen as BEST ANSWER

    Solved using C# extension v1.23.11 and setting "omnisharp.useGlobalMono": "always"


  2. Оn OSX Catalina in C# extension v1.25.4

    setting
    Omnisharp: Mono Path to "/Library/Frameworks/Mono.framework/Versions/Current" solves it

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search