[mono-vb] example solutions to rebuild?
Paul Paukstelis
shocksofmighty at gmail.com
Tue Dec 16 17:35:45 EST 2008
Rolf Bjarne Kvinge wrote:
> You should be able to open any VS solution in MonoDevelop and build it.
>
>
Here is an example of a solution I tried to rebuild:
http://www.a1vbcode.com/app-4443.asp
>> So far everything I have found and tried to compile through monodevelop
>> has failed either initially from a lack of the System.Deployment assembly.
>>
>
> Except for this: VS adds a reference to System.Deployment which almost
> nobody uses and mono doesn't have. Just remove the reference from the
> project (if that causes errors in VS then you'll have to fix those first in
> VS).
>
>
I load up the solution in monodevelop (1.9.1), and try and rebuild and I
get the System.Deployment error.
Taking the build output and removing System.Deployment, I run that in
the terminal like so (
vbnc is version 0.0.0.5904 installed through fedora repos.):
> vbnc -out:"/home/paul/mono/Calculator/bin/Debug/Calculator.exe"
-nologo -utf8output -debug:full -rootnamespace:"Calculator"
-target:winexe -r:/usr/lib64/mono/2.0/System.dll
-r:/usr/lib64/mono/2.0/System.Data.dll
-r:/usr/lib64/mono/2.0/System.Drawing.dll
-r:/usr/lib64/mono/2.0/System.Windows.Forms.dll
-r:/usr/lib64/mono/2.0/System.Xml.dll
"/home/paul/mono/Calculator/FrmClac.vb"
"/home/paul/mono/Calculator/FrmClac.Designer.vb"
"/home/paul/mono/Calculator/My Project/AssemblyInfo.vb"
"/home/paul/mono/Calculator/My Project/Application.Designer.vb"
"/home/paul/mono/Calculator/My Project/Resources.Designer.vb"
"/home/paul/mono/Calculator/My Project/Settings.Designer.vb"
"-resource:/home/paul/mono/Calculator/FrmClac.resources,Calculator.FrmCalc.resources"
"-resource:/home/paul/mono/Calculator/My
Project/Resources.resources,Calculator.My Project.Resources.resources"
I get many errors:
/home/paul/mono/Calculator/FrmClac.vb (441,24) : Error VBNC30451: Could
not resolve the name 'MessageBox'
/home/paul/mono/Calculator/FrmClac.vb (450,24) : Error VBNC30451: Could
not resolve the name 'MessageBox'
/home/paul/mono/Calculator/FrmClac.vb (459,24) : Error VBNC30451: Could
not resolve the name 'MessageBox'
/home/paul/mono/Calculator/FrmClac.vb (468,24) : Error VBNC30451: Could
not resolve the name 'MessageBox'
and the list continues from there referencing MessageBox and later Keys,
and finally /home/paul/mono/<MyGenerator> (1,1) : Error VBNC99999:
Unexpected error: Object reference not set to an instance of an object
I don't have VS to test compilation in Windows.
I can take various other single snipets of code including
System.Windows.Forms and compile and run them in mono with no problem.
More information about the Mono-vb
mailing list