[mono-vb] vbnc: compile .vb with DLL reference

Rolf Bjarne Kvinge rolflists at ya.com
Mon Jun 29 06:48:21 EDT 2009


Hi,

> 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,bool)
>   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

Do you have this assembly?

And what happens if you try the exact same command but within a normal
command prompt, not the mono one?

Rolf



More information about the Mono-vb mailing list