OmniSharp 需要完整安装 Mono(包括 MSBuild)

问题描述 投票:0回答:2

操作系统:Ubuntu 22.04.1 LTS
操作系统类型:64位
GNOME 版本:42.4
Unity 编辑器版本:2021.3.13f1


错误

OmniSharp 需要完整安装 Mono(包括 MSBuild)才能 在禁用 omnisharp.useModernNet 时提供语言服务 在设置中。请安装最新的 Mono 并重新启动。

我在 Ubuntu 上使用 Unity Engine 并安装了 VS Code 来开发我的游戏。
每次我尝试在 VS Code 上打开我的项目时,都会弹出此消息:

一切都很好,运行正常,直到我安装并运行 LXDE 以获得更好的性能。
我切换回 GNOME 并完全删除了 LXDE,仍然没有用。

我目前安装的工具和扩展是:

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

我的设置:

"omnisharp.path": "latest",
"omnisharp.useModernNet": false,
"omnisharp.monoPath": "/usr/bin/mono"
c# unity3d visual-studio-code mono
2个回答
0
投票

Оn OSX Catalina C# 扩展 v1.25.4

设置 Omnisharp:“/Library/Frameworks/Mono.framework/Versions/Current”的单声道路径解决了它


-1
投票

使用 C# 扩展

v1.23.11
和设置
"omnisharp.useGlobalMono": "always"

解决
© www.soinside.com 2019 - 2024. All rights reserved.