无法在Raspbian

时间:2015-12-08 10:05:12

标签: c# .net mono raspberry-pi raspbian

我试图在Raspbian和Mono项目下的Raspbarry PI上尝试午餐程序RPI_test.exe。

我的单声道版本:

  

1 pi @ raspberrypi~ / Documents / bin / Debug%mono -V

     

Mono JIT编译器版本3.2.8(Debian 3.2.8 + dfsg-10)       版权所有(C)2002-2014 Novell,Inc,Xamarin Inc和Contributors。 www.mono-project.com TLS:__thread SIGSEGV:正常     通知:epoll架构:armel,vfp + hard已禁用:
  无杂项:softdebug LLVM:支持,不是   启用。 GC:sgen

Raspbian版本:

  

pi @ raspberrypi~ / Documents / bin / Debug%uname -a

     

Linux raspberrypi 4.1.13-v7 +#826 SMP PREEMPT Fri Nov 13 20:19:03 GMT   2015 armv7l GNU / Linux

当我尝试午餐时,我收到未处理的异常

  

pi @ raspberrypi~ / Documents / bin / Debug%mono RPI_test.exe

     

在程序集中缺少方法SetCompatibleTextRenderingDefault   /home/pi/Documents/bin/Debug/RPI_test.exe,输入   System.Windows.Forms.Application

     

未处理的例外情况:   System.IO.FileNotFoundException:无法加载文件或程序集“System.Windows.Forms,Version = 4.0.0.0,Culture = neutral,   公钥= b77a5c561934e089'或其中一个依赖项。       文件名:' System.Windows.Forms,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'       [ERROR]致命的未处理异常:System.IO.FileNotFoundException:无法加载文件或程序集   ' System.Windows.Forms,Version = 4.0.0.0,Culture = neutral,   公钥= b77a5c561934e089'或其中一个依赖项。       文件名:' System.Windows.Forms,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'

Project是在.NET 4.0框架下编译的。 我不知道可以做些什么。我是覆盆子pi和linux的新手。难道我做错了什么 ?任何人都可以帮我解决这个问题吗?

由于

2 个答案:

答案 0 :(得分:0)

http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives获取最新的单声道版本。来自稳定debian的版本太旧了。使用VS 2012中开发的GUI winforms,我在这个版本上取得了不错的成绩。

答案 1 :(得分:0)

当您的Mono没有安装一些dotnet库时,通常会发生这种问题。您需要为Mono(在Raspbian上)安装donet system-windows-forms库:

apt-get install libmono-system-windows-forms4.0-cil

如果由于未找到其他库而无法在Mono下运行应用程序,则可以查看Mono here的所有可用库。

相关问题