[mono-vb] vbnc: compile .vb with DLL reference
AlterX76
alterx at hotmail.com
Wed Jun 24 03:26:45 EDT 2009
Rolf Bjarne Kvinge-2 wrote:
>
> You want /r:mylib.dll and not /addmodule.
>
Thank you...
Now vbnc displays that (I'm running whitin mono-command prompt):
G:\libGenCrack\Example\dotnet2\MasterExample>vbnc /target:winexe
/r:libGenCrack_
net2.dll form1.vb /out:prova.exe
Visual Basic.Net Compiler version 0.0.0.5914 (Mono 2.4 - r)
Copyright (C) 2004-2008 Rolf Bjarne Kvinge. All rights reserved.
Error : VBNC99999: Unexpected error: An exception was thrown by the type
initial
izer for <Module>
at (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom
(string,boo
l)
at System.Reflection.Assembly.LoadFrom (System.String assemblyFile)
[0x00000]
at vbnc.TypeManager.LoadAssembly (System.String Filename) [0x00000]
at vbnc.TypeManager.LoadReferencedAssemblies () [0x00000]
at vbnc.TypeManager.LoadReferenced () [0x00000]
at vbnc.Compiler.Compile () [0x00000]
Compilation took 00:00:00.8159616
** (C:\PROGRA~1\Mono-2.4\lib\mono\2.0\vbnc.exe:3564): WARNING **: The
following
assembly referenced from C:\PROGRA~1\Mono-2.4\lib\mono\2.0\System.dll could
not
be loaded:
Assembly: System.Configuration (assemblyref_index=1)
Version: 2.0.0.0
Public Key: b03f5f7f11d50a3a
The assembly was not found in the Global Assembly Cache, a path listed in
the MO
NO_PATH environment variable, or in the location of the executing assembly
(C:\P
ROGRA~1\Mono-2.4\lib\mono\2.0\).
** (C:\PROGRA~1\Mono-2.4\lib\mono\2.0\vbnc.exe:3564): WARNING **: Could not
load
file or assembly 'System.Configuration, Version=2.0.0.0, Culture=neutral,
Publi
cKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
** (C:\PROGRA~1\Mono-2.4\lib\mono\2.0\vbnc.exe:3564): WARNING **: Missing
method
GetSection in assembly C:\PROGRA~1\Mono-2.4\lib\mono\2.0\System.dll, type
Syste
m.Configuration.ConfigurationManager
Could not load file or assembly 'System.Configuration, Version=2.0.0.0,
Culture=
neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
at System.Diagnostics.DiagnosticsConfiguration.get_Settings () [0x00000]
at System.Diagnostics.TraceImpl.InitOnce () [0x00000]
at System.Diagnostics.TraceImpl.get_Listeners () [0x00000]
at System.Diagnostics.TraceImpl.get_ListenersSyncRoot () [0x00000]
at System.Diagnostics.TraceImpl.WriteLine (System.String message)
[0x00000]
at System.Diagnostics.Debug.WriteLine (System.String message) [0x00000]
at vbnc.Main.Main (System.String[] CmdArgs) [0x00000]
Failed compilation took 00:00:00.8915136
--
View this message in context: http://www.nabble.com/vbnc%3A-compile-.vb-with-DLL-reference-tp24056222p24179957.html
Sent from the Mono - VB mailing list archive at Nabble.com.
More information about the Mono-vb
mailing list