[MonoDevelop] Adding resources with MonoDevelop 0.12

Paul paul at all-the-johnsons.co.uk
Fri Jan 26 19:08:08 EST 2007


Hi,

I have some simple C# which simply creates some custom buttons. As I'm
not having any joy, I thought I'd try embedding and use MonoDevelop to
help out.

I've added the png files to the project (resources) and ensured that the
correct libs are used (references). The code compiled happily enough

When I come to run it though, all I'm getting is...

Unhandled Exception: System.Resources.MissingManifestResourceException:
Could not find any resource appropiate for the specified culture or its
parents. Make sure "button.resources" was correctly embedded or linked
into assembly "uma".
  at System.Resources.ResourceManager.InternalGetResourceSet
(System.Globalization.CultureInfo culture, Boolean Createifnotexists,
Boolean tryParents) [0x0017e]
in /builddir/build/BUILD/mono-1.2.2/mcs/class/corlib/System.Resources/ResourceManager.cs:341 
  at System.Resources.ResourceManager.InternalGetResourceSet
(System.Globalization.CultureInfo culture, Boolean Createifnotexists,
Boolean tryParents) [0x001fa]
in /builddir/build/BUILD/mono-1.2.2/mcs/class/corlib/System.Resources/ResourceManager.cs:364 
  at System.Resources.ResourceManager.InternalGetResourceSet
(System.Globalization.CultureInfo culture, Boolean Createifnotexists,
Boolean tryParents) [0x001fa]
in /builddir/build/BUILD/mono-1.2.2/mcs/class/corlib/System.Resources/ResourceManager.cs:364 
  at System.Resources.ResourceManager.GetObject (System.String name,
System.Globalization.CultureInfo culture) [0x00027]
in /builddir/build/BUILD/mono-1.2.2/mcs/class/corlib/System.Resources/ResourceManager.cs:175 
  at System.Resources.ResourceManager.GetObject (System.String name)
[0x00000]
in /builddir/build/BUILD/mono-1.2.2/mcs/class/corlib/System.Resources/ResourceManager.cs:161 
  at button.InitializeComponent () [0x003dc]
in /home/paul/Programming/devtroop/uma/uma/button-form.cs:214 
  at button..ctor () [0x00006]
in /home/paul/Programming/devtroop/uma/uma/button-form.cs:61 
  at (wrapper remoting-invoke-with-check) button:.ctor ()
  at button.Main () [0x00000]
in /home/paul/Programming/devtroop/uma/uma/button-form.cs:913 

Any ideas what is going on here?

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/monodevelop-list/attachments/20070127/a64016e5/attachment.bin 


More information about the Monodevelop-list mailing list