问题描述
我正在尝试在最新版本的 raspbian 上使用单声道运行 vb.net 脚本.该脚本最初是在 Visual Studio 中编写的,我刚刚从 Dropbox 将整个文件夹下载到我的 raspberry pi 3 并尝试运行 .exe 文件.
I am trying to run a vb.net script using mono on the latest version of raspbian. The script was originally written in visual studio and i just downloaded the entire folder on to my raspberry pi 3 from dropbox and tried to run the .exe file.
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'
有人有什么建议吗?
推荐答案
使用这些代码并检查.为我工作 :D
Use these codes and check. Worked for me :D
http://www.mono-project.com/download/stable/#download-lin-raspbian
(我使用 Raspbian- 在 linux 选项卡下检查,然后是 raspbian 选项卡,Raspbian 9(用于 Stretch)或 Raspbian 8(用于 Jessie))
(I used Raspbian- check under linux tab, then raspbian tab, Raspbian 9(for Stretch) or Raspbian 8 (for Jessie))
Raspbian 9 (armhf)
sudo apt install apt-transport-https dirmngr
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/debian stable-raspbianstretch main" |须藤三通/etc/apt/sources.list.d/mono-official-stable.list
echo "deb https://download.mono-project.com/repo/debian stable-raspbianstretch main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
Raspbian 8 (armhf)
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo apt install apt-transport-https
echo "deb https://download.mono-project.com/repo/debian stable-raspbianjessie main" |须藤三通/etc/apt/sources.list.d/mono-official-stable.list
echo "deb https://download.mono-project.com/repo/debian stable-raspbianjessie main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
逐行使用
然后安装单声道
sudo apt install mono-devel
最后为 vb 使用这个
and finally for vb use this
sudo apt-get install mono-vbnc
了解更多信息https://www.raspberrypi.org/forums/viewtopic.php?t=6715
for more infohttps://www.raspberrypi.org/forums/viewtopic.php?t=6715
祝你好运:)
这篇关于在树莓派上使用单声道运行 VB.NET 脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!