简体   繁体   中英

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).

I have successfully installed mono on the Pi, compiled, and run a basic hello world application. I am now running the following command ( from here ) to try and compile my windows forms application:

`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

Using MySql.Data.MySqlClient;

2) If the answer to 1 is no, what else could cause that error?

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; compile them all at once, or compile program.cs?

Thanks,

This file I related to the compiler. This might help: 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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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