[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
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=220.127.116.11, 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.
CentOS 6.6 x86_64
.NET 3.5 (Same problem with .NET 2.0)
— — —
Information Technology Laboratory
US Army Engineer Research and Development Center
Vicksburg, MS 39180
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-list