Raspbian OS(Linux& Mono)上的VB.net [英] VB.net on Raspbian OS (Linux & Mono)

查看:45
本文介绍了Raspbian OS(Linux& Mono)上的VB.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我在运行Raspbian的RasberryPI上安装了mono-runtime和monodevelop.我还在vb.net中构建了一个针对.net 2.0的测试应用程序.当我尝试运行测试应用程序时,会显示以下内容:

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!

推荐答案

您可能只安装了 mono-runtime .为了支持VB.Net,您需要一个附加软件包(包含Microsoft.VisualBasic.dll),它称为 mono-basic IIRC.

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.

如此简单的 sudo apt-get install mono-basic 应该会为您提供丢失的文件.

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

(或者是 mono-vbnc 吗?? 无法检查它,一个月前卖掉了我的raspberry-pi ... 是的,您必须安装 mono-vbnc ,也是如此)

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

这篇关于Raspbian OS(Linux& Mono)上的VB.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆