如何在 Ubuntu Xenial 16.04.4 上获得 Mono 3.5

How to get Mono 3.5 on Ubuntu Xenial 16.04.4

在 Ubuntu 16.04.4 上安装 Mono 3.5 时运气不佳。感谢指点。

apt-get install mono-reference-assemblies-3.5 mono --version Mono JIT compiler version 4.2.1 (Debian 4.2.1.102+dfsg2-7ubuntu4)

似乎不​​管怎样都默认为 Mono 4?

我的实际需求是运行 "Project 5: Sightseer" headless dedicated。那死了 with/after:

mono --runtime=3.5 ./P5SServer.exe WARNING: The runtime version supported by this application is unavailable. Using default runtime: v4.0.30319 Can't find custom attr constructor image: /home/steam/Steam/sightseer/P5SServer.exe mtoken: 0x0a000001 Unhandled loader error: 8, (null) System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (null) * Assertion: should not be reached at loader.c:298

有 Mono 经验的人能给我指出正确的方向吗?

在这种情况下,针对我收到的错误消息的解决方案是安装 mono-complete。 (apt-get install mono-complete)

我怀疑版本 3.5 参考不是它不会 运行 的原因(这是基于开发人员的评论,我需要 3.5 以及它不起作用的原因),它实际上是各种库或缺少的命名空间。