[Mono-list] C# resource Q

Paul paul at all-the-johnsons.co.uk
Thu Jan 25 16:44:49 EST 2007


Hi,

I've compiled some code using the latest iteration of mono (1.2.2.1 -
fedora rawhide) with the following for the compiler line

gmcs button-new.cs button-form.cs -r:System.Windows.Forms
-r:System.Drawing -r:System.Data -resource:a.png -resource:b.png
-resource:c.png -resource:d.png

It compiles fine, but if I come to run the executable, all I get is

Unhandled Exception: System.Resources.MissingManifestResourceException:
Could not find any resource appropriate for the specified culture or its
parents. Makes sure "bmtestapp.Form1.resources" was correctly embedded
or lined into assembly "button-new"

This looks to me that I should be using a resources file rather than the
command line -resource:

Does anyone know if the behaviour of mono has changed so that I must
have the resource file now?

TTFN

Paul
-- 
"Mmmmmmmm....Shakira geschmiert mit schokolade" sagt Homer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20070125/21f0ec0f/attachment.bin 


More information about the Mono-list mailing list