I am trying to setup a development machine using 20.04 and am having problems with the Monodevelop environment.
Whenever I create a solution and project it seems that it cannot find the proper build setup. I suspect there is some problem when using the 18.04 mono repositories on 20.04, but I can't find out how to fix it.
This is the error I receive when I try to build using the Monodevelop IDE:
/usr/lib/mono/msbuild/15.0/bin/Microsoft.CSharp.CurrentVersion.targets(5,5):
Error MSB4019: The imported project "/usr/lib/mono/msbuild/15.0/bin/Roslyn/Microsoft.CSharp.Core.targets" was not found.
Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. (MSB4019) (HelloWorld)
Does anyone know how to get a working version of Monodevelop on Ubuntu 20.04?
I managed to fix this on Ubuntu 20.04.
First, add mono-project's repo for 18.04 by following the official instructions, pasted here for convenience:
Then install mono-roslyn using:
Rebuild your project.
Mono is not yet available in stable repo, but you can install it with the
preview-focal main
with the following.Later you can test it with a simple hello world application by creating a file called
hello.cs
Compile it with
csc hello.cs
. It will generate an exe. Now run it withmono hello.exe
and it should workI try but get Debugger operation failed
I've had luck with setting up
monodevelop
7.8.4 (build 2) Mono version 6.12.0.122 on Ubuntu 21.10 using Debian Buster source.First you will need to install
libjpeg62-turbo_1.5.2-2+deb10u1_amd64.deb
.Once you have this installed, open a terminal and type:
At this point
monodevelop
loads and runs, but will not debug and you will see an error that looks like this:To fix this, we go back to the terminal and run:
Reboot and enjoy.