Hi, > Hello, > > I have written a CLI programm in VisualBasic with VisualStudio 2008. > > options and modifications to the standard VB-cli template: > - destination framework version 2.0 > - removed unused dependencies > - removed Microsoft.VisualBasic Namespace > - commented all < ***VisualBasic ***> attributes > - commented all source code related to the My-Namespace from code- > generator > > then I compiled my project with VS und copied it with WinSCP to Linux: > - Debian > - Mono 1.9.1 with libmono-microsoft8.0-cil > > Error when starting $ mono ./LookupTableEditor.exe -i > > ---------- > ** (./LookupTableEditor.exe:13487): WARNING **: The following assembly > referenced from /root/ewms/lte/LookupTableEditor.exe could not be > loaded: > Assembly: Microsoft.VisualBasic (assemblyref_index=1) > Version: 8.0.0.0 > Public Key: b03f5f7f11d50a3a > The assembly was not found in the Global Assembly Cache, a path listed > in > the MONO_PATH environment variable, or in the location of the executing > assembly (/root/ewms/lte/). > > ** (./LookupTableEditor.exe:13487): WARNING **: Could not load file or > assembly 'Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, > PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. > > ** (./LookupTableEditor.exe:13487): WARNING **: Missing method > ConditionalCompareObjectNotEqual in assembly > /root/ewms/lte/LookupTableEditor.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' > ---------- > > i know that mono is searching for Microsoft.VisualBasic but I removed > every dependency I could find :(
It's not possible to remove the Microsoft.VisualBasic reference when compiling in VS 2008 [1]. In any case you don't have to, mono includes Microsoft.VisualBasic.dll, though it is not installed by default. The package you need to install is named 'mono-basic' in openSuse, I think it's called libmono-microsoft-visualbasic8.0-cil in Debian (according to this page at least: http://packages.debian.org/source/sid/mono-basic) > is it posible to totally remove this "My" Namespace from VB-projects? Yes. Define _MYTYPE=\"Empty\". Also see: http://msdn.microsoft.com/en-us/library/ms233781.aspx Rolf [1]. It is possible to remove the Microsoft.VisualBasic.dll reference when compiling from the command line, using passing '-vbruntime-' to the compiler. Also see: http://msdn.microsoft.com/en-us/library/bb531259.aspx > -- > View this message in context: http://www.nabble.com/CLI-program- > compiled-with-VS08-does%27t-run-under-Mono-1.9.1- > tp20174907p20174907.html > Sent from the Mono - VB mailing list archive at Nabble.com. > > _______________________________________________ > Mono-vb mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/mono-vb _______________________________________________ Mono-vb mailing list [email protected] http://lists.ximian.com/mailman/listinfo/mono-vb
