Hi, You don't mention which vbnc version you're using, I downloaded the project, compiled and executed it without problems.
Rolf > > This was a mistake on my part. The *.resource files were created on a > previous failed build. monodevelop does not re-invoke resgen if the > *.resource files are present. However, in reference to the example > below, it will compile fine using the build line below, but it will not > run: > > vbnc -out:"/home/paul/mono/calc2/Calculator/bin/Debug/Calculator.exe" > -nologo -utf8output -debug:full -rootnamespace:"Calculator" > - > imports:Microsoft.VisualBasic,System,System.Collections,System.Collecti > ons.Generic,System.Data,System.Diagnostics,System.Drawing,System.Window > s.Forms > -define:_MYTYPE=\"WindowsForms\" -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/calc2/Calculator/FrmClac.vb" > "/home/paul/mono/calc2/Calculator/FrmClac.Designer.vb" > "/home/paul/mono/calc2/Calculator/My Project/AssemblyInfo.vb" > "/home/paul/mono/calc2/Calculator/My Project/Application.Designer.vb" > "/home/paul/mono/calc2/Calculator/My Project/Resources.Designer.vb" > "/home/paul/mono/calc2/Calculator/My Project/Settings.Designer.vb" > "- > resource:/home/paul/mono/calc2/Calculator/FrmClac.resources,Calculator. > FrmCalc.resources" > "-resource:/home/paul/mono/calc2/Calculator/My > Project/Resources.resources,Calculator.My Project.Resources.resources" > > Errors when trying to run the executable: > > Unhandled Exception: System.InvalidOperationException: See inner > exception ---> System.Resources.MissingManifestResourceException: Could > not find any resources appropriate for the specified culture or the > neutral culture. Make sure "Calculator.FrmCalc.resources" was > correctly > embedded or linked into assembly "Calculator" at compile time, or that > all the satellite assemblies required are loadable and fully signed. > at System.Resources.ResourceManager.AssemblyResourceMissing > (System.String fileName) [0x00047] in > /builddir/build/BUILD/mono- > 2.0.1/mcs/class/corlib/System.Resources/ResourceManager.cs:525 > > at System.Resources.ResourceManager.InternalGetResourceSet > (System.Globalization.CultureInfo culture, Boolean createIfNotExists, > Boolean tryParents) [0x00237] in > /builddir/build/BUILD/mono- > 2.0.1/mcs/class/corlib/System.Resources/ResourceManager.cs:408 > ...with more stuff after this. > > This is why I thought the resources weren't being generated. > > --paul > > > Rolf Bjarne Kvinge wrote: > > > >> Update: I realized I was using '-define=' instead of '-define:'. I > can > >> compile things fine now, but they don't run. Resources are not > getting > >> embedded. Is monodevelop supposed to invoke resgen to convert *.resx > >> files? I don't see that happening. > >> > >> > > > > MonoDevelop is supposed to invoke resgen2. > > > > Is this the project at http://www.a1vbcode.com/app-4443.asp ? > > > > Rolf > > > > > >> --paul > >> > > > > > > _______________________________________________ Mono-vb mailing list [email protected] http://lists.ximian.com/mailman/listinfo/mono-vb
