使用 Mono 编译器将 c# winform 应用程序移植到 RaspberryPi 时出错

Error in Porting c# winform application to RaspberryPi using Mono Compiler

我正在尝试 运行 在 visual studio 2012 年和我的 raspberry pi 上使用单编译器开发的 windows 表单应用程序。但是我收到以下错误。

    System.IO.FileNotFoundException: Could not load file or assembly 
   'System.Data.SqlServerCe

数据库文件也包含在我的 .exe 运行 所在的同一文件夹中。 我该如何解决这个错误?

看来你不能那样做。您缺少 Sql Server compact dll,并且如前所述 here,它是一个本地库,不能与 mono 一起使用。

我认为您必须将 db/queries 转换为与 linux 环境兼容的东西,例如树莓派论坛中的 SQLite here or similar. Check also this