How to install newer version of mono in linux

I am trying to connect to connect to an Azure SQL database using mono and ADO.NET.
I installed mono using: Azure IoT device SDKs for Linux
The example I am running: Microsoft example for SQL ADO.NET

This example program works on my host pc (mono 5.18.1.3) but not the imx7 because the installed version of mono (5.4.1.6) does not support the ssl connections. This feature has not been implemented.

I need to install a more recent version of mono (5.10 or greater). How would I do this? Alternately, would it be easier to install .net core?

hi @design and Welcome to the Toradex Community!!!

I need to install a more recent version of mono (5.10 or greater). How would I do this? Alternately, would it be easier to install .net core?

I imagine you installed using opkg. The version is given by the Angstrom Feeds. Depending on your needs, I can suggest you two solutions:

  1. You can do a custom openembedded build with the layer thud or the master branch and import toradex Bsp in this branch. The compilation may work or not, you need to try this.

  2. You can install Torizon and .net core on the module. Please have a look here for an example.

Best regards,
Jaski