locked
Cannot find Localized Resources RRS feed

  • Question

  • using ResourceProject.Resources;
    public class Register 
    {
            private string email;
            private ResourceManager resManager = new ResourceManager("ResourceProject.Resources.strings"Assembly.GetExecutingAssembly());

            
            public Register()
            {
                email = resManager.GetString("please_enter_email").ToString();

            }
    }
    The GetString() call above cannot find the resources in the excuting assembly even though the resource project is added as a reference 
    in the Silverlight project and the bindings in XAML in the same project as this class work perfectly and have no issues finding the resource files.
    I suspect the Assembly in the ResourceManager constructor is not right.
    Tuesday, February 22, 2011 4:36 AM

Answers