Tag: mono

  • Compiling mono 6 on FreeBSD 12

    Steps: There might be complaint about missing python or python3 but that should be resolved by proper symlinking in /usr/local/bin. gmake check can be used to run tests, gmake install to install mono. Might make sense to install gnome-sharp and gtk-sharp after installing mono. This works for my FreeBSD 11 This works for my FreeBSD…

  • Running Mono with NGINX

    Important thing (if using regular expressions in server names configuration in NGINX) is to make sure to pass $host as SERVER_NAME in fastcgi_params – like:fastcgi_param SERVER_NAME $host; Default value of $server_name will pass regexp and that will cause Mono to crash while parsing request URI.

  • Importing SSL certificates into Mono store

    Run cert-sync –user /etc/ssl/cert.pem. Omit –user to synchronize for entire system (note that this installs them in /usr/share/.mono rather than /usr/local/share/.mono). Without this you might be experiencing errors like “Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED” or similar

  • Mono 4.8.1 with TLS 1.2 on FreeBSD

    TLS 1.2 is not enabled in default version of Mono 4.8.1 port for FreeBSD. To enable it several changes are needed:Index: Makefile===================================================================— Makefile (revision 445025)+++ Makefile (working copy)@@ -45,7 +45,8 @@mono:ikdasm:e4deabf:8/external/ikdasm \mono:ikvm-fork:367864e:9/external/ikvm \mono:reference-assemblies:6c77197:10/external/binary-reference-assemblies \- mono:rx:b29a4b0:11/external/rx+ mono:rx:b29a4b0:11/external/rx \+ mono:boringssl:c06ac6b:12/external/boringssl USES= autoreconf bison compiler:c11 cpe gettext gmake iconv libtool pathfix \perl5 python shebangfix tar:bzip2@@ -55,7 +56,7 @@USE_LDCONFIG=…

  • Compiling latest versions of monodevelop on FreeBSD

    Clone their repository from git (tarballs created by them fail way too often) git clone https://github.com/mono/monodevelop.git Optionally checkout version you want to run (list tags by running git tag -l in that newly created monodevelop dir, and checkout one you want using command similar to git checkout tags/monodevelop-5.7.1.47).After that you need to edit file monodevelop/scripts/configure.sh…

  • Running unit tests from console

    If you created and compiled unit tests using MonoDevelop you need to copy several dlls to the same directory before you can use nunit-console with compiled dll. Those libraries can be found /usr/local/lib/monodevelop/AddIns/NUnit directory