[Mono-list] VB.NET Support in Mono 4.2.1?
timotheus.pokorra at solidcharity.com
Sat Dec 5 07:26:16 UTC 2015
I have not tried it myself for some time, but I believe some people
are using my mono-basic-opt package.
The sources of the spec file show how I compile it:
Please note that I only build for TargetFrameworkVersion v4.5 by using
find and sed to replace it in the csproj files.
You can find the rpms ready to install at
hope this helps,
On 4 December 2015 at 22:30, George, Glover E ERDC-RDE-ITL-MS
<Glover.E.George at erdc.dren.mil> wrote:
> 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=188.8.131.52,
> Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
> 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.
> System Details:
> CentOS 6.6 x86_64
> Mono 184.108.40.206
> .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
> Mono-list maillist - Mono-list at lists.ximian.com
in Plauen: 03741 7424995
More information about the Mono-list