Hello. I’m trying to import a project project of mine into MonoDevelop on Archlinux. When I try to run it, I get a single error message:
/usr/lib/mono/msbuild/15.0/bin/Microsoft.CSharp.CurrentVersion.targets(331,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.
I’ve installed MonoGame 3.7.1 (Extension manager shows 3.7.0.1 working, but 3.7.1.189 gives an error about expecting Mono 6.0 but finds 7), dotnet-sdk. Why is something pointing to /usr/lib/mono/msbuild/15.0/bin/ when Roslyn is clearly in /usr/share/dotnet/dotnet/sdk/3.1.103/? In Preferences .NET core points to /usr/share/dotnet/dotnet, is some package I’m including messing this up? Wtf is going on here?
Mono 6.4.0 is installed, MonoDevelop detects Mono 6.4.0 listed as a .NET runtime, but MonoDevelop also wants .NET Core SDK (which it has detected and seems to work). Anyway, they’re both installed.
I’ve had this problem recently, You need to install mono-msbuild, but before that you have to either move or delete the problem folder: mv /usr/lib/mono/msbuild/15.0 /usr/lib/mono/msbuild/15.0-old, hope this helps, just about pulled my hair out trying to fix this error.
I had to remove monodevelop-stable before I could replace msbuild-stable with mono-msbuild. Seems like monodevelop-git doesn’t want to use mono-msbuild; when I try to reinstall MonoDevelop it demands that it replace mono-msbuild with msbuild-stable. So I went with monodevelop-bin, which installed fine. Still using monogame-bin. However now I’m getting:
error MSB4019: The imported project "/usr/lib/mono/xbuild/MonoGame/v3.0/MonoGame.Content.Builder.targets" was not found.
The only two places MonoGame.Content.Builder.targets exists are:
I really want to use monogame-git because it seems way more up to date but it still doesn’t want to build (problem building openTK: index out of range exception)