[Mono-list] VB.NET Support in Mono 4.2.1?
George, Glover E ERDC-RDE-ITL-MS
Glover.E.George at erdc.dren.mil
Fri Dec 4 21:30:59 UTC 2015
Hi all,
I’m relatively new to Mono, and am currently working on a project that consists of Windows Forms, implemented with C#, a VB.NET library, and some external Fortran code. Leaving the Fortran code alone for a second, I’m trying to find out what direction I should go to enable mono 4.2.1 to access the VB.NET library. Currently I’m getting the following error when the C# code calls into the VB.NET dll:
[0x7f165cdc0700:] EXCEPTION handling: 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.
I did a quick search, and saw that vbnc is apparently the new VB compiler. Is this still correct? I tried installing that software, but received the following error during the make process:
MONO_PATH="../../class/lib/bootstrap:$MONO_PATH" mono --debug ../../class/lib/bootstrap/vbnc.exe /sdkpath:/usr/local/lib/mono/4.5/ -debug -r:System.Xml.dll -noconfig -define:_MYTYPE=\"Empty\" /novbruntimeref /r:../../class/lib/bootstrap/Microsoft.VisualBasic.dll -target:exe -out:extract-source.exe @extract-source.exe.sources
Visual Basic.Net Compiler version 0.0.0.5943 (Mono 4.0 - master/43f50e7)
Copyright (C) 2004-2010 Rolf Bjarne Kvinge. All rights reserved.
vbnc : Command line : error VBNC2017: The library 'System.Xml.dll' could not be found.
There were 1 errors and 0 warnings.
Compilation took 00:00:00.0792160
I’m not sure where I go from here. It is a fairly simple dll which only implements a mathematical function. It is possible to re-write it in C#, but for my own curiosity, I’d like to know how well VB is supported in mono.
Cheers.
System Details:
CentOS 6.6 x86_64
Mono 4.2.1.102
.NET 3.5 (Same problem with .NET 2.0)
— — —
Glover George
Computer Scientist
Information Technology Laboratory
US Army Engineer Research and Development Center
Vicksburg, MS 39180
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20151204/e14a2e93/attachment.html>
More information about the Mono-list
mailing list