If you are having issues with the build, it's due to an outdated version of mono currently in the repos. Save the following to a script, run, and try building:
#!/bin/sh
mkdir -p /tmp/mono
pushd /tmp/mono
debpkg=$(curl --silent https://download.mono-project.com/repo/ubuntu/dists/preview-focal/main/binary-amd64/Packages | grep -Po "(?<=Filename: ).+mono-roslyn.+\\.deb")
curl "https://download.mono-project.com/repo/ubuntu/${debpkg}" > mono.deb
ar -x mono.deb data.tar.xz
tar pxJf data.tar.xz ./usr/lib/mono/4.5/System.Reflection.Metadata.dll --strip-components 5
if ! test -f /usr/lib/mono/4.5/System.Reflection.Metadata.dll.dist; then
sudo mv -v /usr/lib/mono/4.5/System.Reflection.Metadata.dll /usr/lib/mono/4.5/System.Reflection.Metadata.dll.dist
fi
sudo install -v -m0755 System.Reflection.Metadata.dll /usr/lib/mono/4.5
popd
Pinned Comments
m3thodic commented on 2021-10-04 23:59 (UTC)
If you are having issues with the build, it's due to an outdated version of mono currently in the repos. Save the following to a script, run, and try building: