VB.net on Raspbian OS (Linux & Mono)

杀马特。学长 韩版系。学妹 提交于 2020-12-06 12:27:08

问题


So I installed mono-runtime and monodevelop on my RasberryPI running Raspbian. I also built a test application in vb.net which Is targeted for .net 2.0. When I try and run the test app I get this:

Missing method CompareString in assembly /home/pi/Desktop/PITest.exe, type Microsoft.VisualBasic.CompilerServices.Operators

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

All help would be greatly appreciated!


回答1:


You probably have only mono-runtime installed. To support VB.Net, you need an additional package (which contains Microsoft.VisualBasic.dll), it's called mono-basic IIRC.

So simple sudo apt-get install mono-basic should give you the missing file.

(or was it mono-vbnc? Can't check it, sold my raspberry-pi some month ago... Yes, you have to install mono-vbnc, too)



来源:https://stackoverflow.com/questions/18711739/vb-net-on-raspbian-os-linux-mono

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!