Raspberry PI中Mono Develop中的Microsoft.CSharp.Core.targets

问题描述

我已经在RaspBerry PI 4上安装了Mono和Mono Develop。在为ex创建项目时。控制台应用程序,无法识别任何对象。例如说

"Predefined type System.Object is not defined or imported." 

当我运行项目时,错误如下:

/home/pi/.cache/MonoDevelop/7.0/MSBuild/11852_1/Microsoft.CSharp.CurrentVersion.targets(5,5): Error MSB4019: The imported project "/home/pi/.cache/MonoDevelop/7.0/MSBuild/11852_1//Microsoft.CSharp.Core.targets" was not found. Confirm that the expression in the Import declaration "\Microsoft.CSharp.Core.targets" is correct,and that the file exists on disk. (MSB4019) (TestConsole3)

怎么了?为了能够运行该项目该怎么做?

解决方法

我将编译器从MsBuild更改为Xbuild,问题消失了。