在树莓派上运行带有mono的VB.NET脚本

时间:2017-12-08 16:38:10

标签: vb.net visual-studio raspberry-pi mono raspbian

我正在尝试使用最新版本的raspbian上的mono运行vb.net脚本。该脚本最初是在visual studio中编写的,我只是将整个文件夹从dropbox下载到我的raspberry pi 3上,并尝试运行.exe文件。

mono /home/pi/Downloads/ctof/bin/Debug/ctof.exe

并得到了满足:

Unhandled Exception:
    System.IO.FileNotFoundException: Could not load file or assembly 
    'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
    File name: 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
    File name: 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

有没有人有任何建议?

1 个答案:

答案 0 :(得分:0)

使用这些代码进行检查。为我工作:D

http://www.mono-project.com/download/stable/#download-lin-raspbian

(我使用Raspbian-在linux标签下检查,然后在raspbian标签下,Raspbian 9(用于Stretch)或Raspbian 8(对于Jessie)进行检查)

Raspbian 9(armhf)

sudo apt安装apt-transport-https dirmngr

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

回显“ deb https://download.mono-project.com/repo/debian stable-raspbianstretch main” | sudo tee /etc/apt/sources.list.d/mono-official-stable.list

sudo apt更新

Raspbian 8(armhf)

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

sudo apt安装apt-transport-https

回显“ deb https://download.mono-project.com/repo/debian stable-raspbianjessie main” | sudo tee /etc/apt/sources.list.d/mono-official-stable.list

sudo apt更新

逐行使用

然后安装单声道

sudo apt install mono-devel

最后是vb使用此

sudo apt-get install mono-vbnc

了解更多信息 https://www.raspberrypi.org/forums/viewtopic.php?t=6715

祝你好运:)