简体   繁体   English

在Raspberry Pi上使用Mono编译C#Windows Forms应用程序时出错

[英]Error compiling a C# Windows Forms applicaiton with mono on Raspberry Pi

I am trying to compile my C# application to the Raspberry Pi (running Debian). 我正在尝试将C#应用程序编译为Raspberry Pi(运行Debian)。

I have successfully installed mono on the Pi, compiled, and run a basic hello world application. 我已经在Pi上成功安装了mono,已编译并运行了基本的hello world应用程序。 I am now running the following command ( from here ) to try and compile my windows forms application: 我现在正在运行以下命令( 从此处开始 )以尝试编译Windows窗体应用程序:

`dmcs -pkg:dotnet Login.cs /r:system.Windows.Forms /r:System.Drawing`

However I get the following error: 但是我收到以下错误:

Error CS006; Metadata file 'cscompmgd.dll' could not be found Compilation failed: 1 error(s)

So my questions are: 所以我的问题是:

1) Could this because I am trying to reference 1)这可能是因为我正在尝试引用

Using MySql.Data.MySqlClient; 使用MySql.Data.MySqlClient;

2) If the answer to 1 is no, what else could cause that error? 2)如果对1的回答为否,还有什么可能导致该错误?

3) Related question: My application has a few different forms, will compiling this Login.cs file be enough to run the whole application, or should I; 3)相关问题:我的应用程序有几种不同的形式,编译此Login.cs文件足以运行整个应用程序,还是应该; compile them all at once, or compile program.cs? 一次全部编译它们,还是编译program.cs?

Thanks, 谢谢,

This file I related to the compiler. 我与编译器有关的文件。 This might help: http://ubuntuforums.org/showthread.php?t=914626 . 这可能会有所帮助: http : //ubuntuforums.org/showthread.php?t=914626 As for MySQL client, you might need more libraries, I would recommend compiling your app on a separate computer (with more harddisk and memory a transferring your binary to the raspberry Pi (the extra step might make builds a little trickier but the extra space and power might make a full build envrionment easier) 对于MySQL客户端,您可能需要更多的库,我建议您在单独的计算机上编译应用程序(具有更多的硬盘和内存,将二进制文件传输到树莓派(额外的步骤可能会使构建起来有些棘手,但额外的空间和强大的功能可能会使完整构建环境更容易)

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

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