[mono-vb] example solutions to rebuild?
Rolf Bjarne Kvinge
rolflists at ya.com
Mon Dec 29 04:41:33 EST 2008
You don't mention which vbnc version you're using, I downloaded the project,
compiled and executed it without problems.
> 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
> vbnc -out:"/home/paul/mono/calc2/Calculator/bin/Debug/Calculator.exe"
> -nologo -utf8output -debug:full -rootnamespace:"Calculator"
> -define:_MYTYPE=\"WindowsForms\" -target:winexe
> -r:/usr/lib64/mono/2.0/System.dll -
> "/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"
> 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
> 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
> at System.Resources.ResourceManager.InternalGetResourceSet
> (System.Globalization.CultureInfo culture, Boolean createIfNotExists,
> Boolean tryParents) [0x00237] in
> ...with more stuff after this.
> This is why I thought the resources weren't being generated.
> Rolf Bjarne Kvinge wrote:
> >> Update: I realized I was using '-define=' instead of '-define:'. I
> >> compile things fine now, but they don't run. Resources are not
> >> 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
More information about the Mono-vb