[Mono-list] Embedded Resources Question

Chris Marshall centimetre at gmail.com
Wed Mar 29 21:46:20 EST 2006


I have been developing an application in Visual Studio 2003 which makes use
of a toolbar.  I am able to compile this under Mono but when I attempt to
display the Window I get the following errors reported...

Unhandled Exception: System.Resources.MissingManifestResourceException:
Could not find any resource appropiate for the specified culture or its
parents. Make sure "EmailLibrary.EmailEditor.resources" was correctly
embedded or linked into assembly "EmailLibrary".
in <0x00300> System.Resources.ResourceManager:InternalGetResourceSet (
System.Globalization.CultureInfo culture, Boolean Createifnotexists, Boolean
tryParents)
in <0x00432> System.Resources.ResourceManager:InternalGetResourceSet (
System.Globalization.CultureInfo culture, Boolean Createifnotexists, Boolean
tryParents)
in <0x00432> System.Resources.ResourceManager:InternalGetResourceSet (
System.Globalization.CultureInfo culture, Boolean Createifnotexists, Boolean
tryParents)
in <0x00058> System.Resources.ResourceManager:GetObject (System.String name,
System.Globalization.CultureInfo culture)
in <0x00010> System.Resources.ResourceManager:GetObject (System.String name)


I have used the following to compile

resgen /compile *.resx

mcs -target:library -warn:0 -define:MONO -out:../Bin/EmailLibrary.dll -r:
System.Windows.Forms -r:System.Drawing -r:System.Data -r:FolderLibrary
-lib:../Bin -resource:AccountDlg.resources
-resource:AccountsDlg.resources-resource:
EmailEditor.resources -resource:SendReceiveDlg.resources -resource:
EmailHeader.resources -resource:EmailViewControl.resources -recurse:*.cs

I don't understand why the resources are not available when they have been
added.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20060329/6103ca05/attachment.html


More information about the Mono-list mailing list