[mono-vb] example solutions to rebuild?
shocksofmighty at gmail.com
Fri Dec 19 09:51:06 EST 2008
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:
-nologo -utf8output -debug:full -rootnamespace:"Calculator"
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.
(System.String fileName) [0x00047] in
(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 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 ?
More information about the Mono-vb