[英]OmniSharp requires a complete install of Mono (including MSBuild)
操作系统: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# 扩展v1.23.11
和设置"omnisharp.useGlobalMono": "always"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.