To build DotDevelop from scratch you will need to following pre-requisites.
Please note, Ubuntu 20.04 LTS is the perferred environment for buiding from source as Ubuntu 22.04 LTS doesn’t support .NET Core 3.1 or 2.0 since the distro only supports openSSL 3.
The following steps are for Ubuntu, other distros may require different URLs.
sudo apt update
sudo apt install wget
sudo apt install intltool fsharp gtk-sharp2
# DotNet
## Ubuntu 20.04
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
## Ubuntu 22.04
# wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
# sudo dpkg -i packages-microsoft-prod.deb
# rm packages-microsoft-prod.deb
sudo apt-get install -y apt-transport-https
sudo apt-get update && sudo apt-get install -y dotnet-sdk-3.1
sudo apt-get update && sudo apt-get install -y dotnet-sdk-5.0
sudo apt-get update && sudo apt-get install -y dotnet-sdk-6.0
# Install Mono and MSBuild
sudo apt-get install -y gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
# Reference mono and msbuild from stable repo for versions 6.12.0.122 (mono) and 16.6.0.15201 (msbuild)
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
# Reference mono and msbuild from preview repo for versions 6.12.0.147 (mono) and 16.10.1 (msbuild)
# echo "deb https://download.mono-project.com/repo/ubuntu preview-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-preview.list
sudo apt-get update
# Install mono-complete and ca-certificates-mono
sudo apt-get install -y mono-complete ca-certificates-mono
# Synchronise Mono SSL certs
cert-sync /etc/ssl/certs/ca-certificates.crt
# Install extra packages required for dotdevelop build
sudo apt-get install -y sed git build-essential intltool nuget fsharp gtk-sharp2
sudo apt-get install -y software-properties-common
sudo apt-get update
# NetCoreDbg Requirements
sudo apt install curl
sudo apt install -y cmake clangBuild DotDevelop
git clone -b main https://github.com/dotdevelop/dotdevelop.git
cd dotdevelop/
./configure --profile=gnome
makeBuild NetCoreDbg, starting from the root of the dotdevelop folder.
# Build NetCoreDbg (starting from DotDevelop directory)
cd main/external/Samsung.Netcoredbg
bash build.sh
cd ../../..Launch DotDevelop, using one of the 2 options
# Start detached from terminal window
(mono main/build/bin/MonoDevelop.exe &)
# Start attached to terminal window
mono main/build/bin/MonoDevelop.exe- Launch, MonoDevelop
- Edit > Preferences > Projects > .NET Core Debuggers
- Click
...and navigate to,main/build/AddIns/Samsung.Netcoredbg/netcoredbg - Click, OK and start debugging