Resx file in another assembly

Posted on 2009-02-17
Last Modified: 2012-05-06
I have a resx file (main.resx) in a project called projectA. I have a windows application projectB which has a reference to projectA. I'm using the resx file to store the strings (e.g. button name). How can I read the button name description in the resx file from projectB.

Question by:praveenuni
    1 Comment
    LVL 23

    Accepted Solution

    If your button name description is PUBLIC, and the resx file is embedded (uses PublicResXFileCodeGenerator as its "Custom Tool", and has an associated Resources.Designer.cs file, it is easy to see name space definition  and variable name opening the Resources.Designer.cs file.

    For example, in our Properties\Resources.Designer.cs you will find

            /// <summary>
            ///   Looks up a localized string similar to Assembly.
            /// </summary>
            public static string AssemblyLabel {
                get {
                    return ResourceManager.GetString("AssemblyLabel", resourceCulture);
    in a namespace of ProjectNamespace.Properties.

    In another assembly, you would reference this as


    If you do NOT use embeddded resources, you will have to use the ResourceManager to load the Resx file directly.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now