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,问题消失了。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...