简体   繁体   English

我无法在 Raspberry Pi 上使用 Monodevelop 构建 C# 代码

[英]I can't build C# code with Monodevelop on Raspberry Pi

I installed MonoDevelop on Raspberry Pi and copied one unit of project folder for C# which I had already written with VisualStudio2017 on Windows PC to Raspberry Pi.我在 Raspberry Pi 上安装了 MonoDevelop,并将我已经在 Windows PC 上用 VisualStudio2017 编写的 C# 的一个项目文件夹复制到 Raspberry Pi。 But, I can't built(compiled) the source code with MonoDevelop.但是,我不能用 MonoDevelop 构建(编译)源代码。

What should I do?我应该怎么办?

Raspberry pi: CM3+(32GB) and CMIO树莓派:CM3+(32GB) 和 CMIO
Raspbian:10(buster) Raspbian:10(破坏者)

I installed MonoDevelop on Raspberry Pi and copied one unit of project folder for C# which I had already written with VisualStudio2017 on Windows PC to Raspberry Pi.我在 Raspberry Pi 上安装了 MonoDevelop,并将我已经在 Windows PC 上用 VisualStudio2017 编写的 C# 的一个项目文件夹复制到 Raspberry Pi。 But, I can't built(compiled) the source code with MonoDevelop.但是,我不能用 MonoDevelop 构建(编译)源代码。

What should I do?我应该怎么办?

By the way, the following error message is output in MonoDevelop when building.顺便说一下,构建时MonoDevelop中的以下错误消息是output。

[331 Imported project “/Home/pi/,cache/MonoDevelop/7.0/MSBuild/1068_1/Microsoft.CSharp.Core.targets” Was not found. [331 未找到导入的项目“/Home/pi/,cache/MonoDevelop/7.0/MSBuild/1068_1/Microsoft.CSharp.Core.targets”。 Check whether the declaration path is correct, and whether the file exists on the disk.检查声明路径是否正确,文件是否存在于磁盘中。 (MSB4019) '' ] (MSB4019) '' ]

(the original message is Japanese.) (原文是日语。)

When I used cd and ls with CUI, I could not find Microsoft.CSharp.Core.targets in the folder 1608_1 (there were many files with similar names).当我将cdls与 CUI 一起使用时,我在文件夹1608_1中找不到Microsoft.CSharp.Core.targets (有许多名称相似的文件)。

By the way, executable file that I have already built on Windows PC works on Raspberry Pi.顺便说一句,我已经在 Windows PC 上构建的可执行文件可以在 Raspberry Pi 上运行。

I would like to make a program roughly with VisualStudio on Windows PC and adjust fine debugging with MonoDevelop on the target machine, Raspberry Pi.我想在 Windows PC 上使用 VisualStudio 大致制作一个程序,并在目标机器 Raspberry Pi 上使用 MonoDevelop 调整精细调试。

Try using a different version of Mono.尝试使用不同版本的 Mono。

Hope this helps!希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM