Proper method for adding/accessing resources in a DLL project?

Discussion in 'ASP .Net' started by TastyKarma@gmail.com, Jul 18, 2006.

  1. Guest

    Was hoping somebody might have some pointers or maybe a link to an
    article that explains how to add resources inside a DLL project.
    In a regular project there's the option to "Add ASP .NET Folder" that
    allows you to add local and global resources folders that contain resx
    files to be accessed directly in the code. I haven't found anything
    similar to that when working with a DLL library. Is there some standard
    way I'm supposed to add resources to a DLL?
    Any info is appreciated,
    Thanks.
    Mark
     
    , Jul 18, 2006
    #1
    1. Advertising

  2. Guest

    OK, turns out that I can directly access any .resx file that I place in
    the project as long as the property "Build Action" specifies that it's
    an "Embedded Resource". So I can access it similar to:
    NameSpace.[DirectoryName].ResxFilename.ResourceID

    wrote:
    > Was hoping somebody might have some pointers or maybe a link to an
    > article that explains how to add resources inside a DLL project.
    > In a regular project there's the option to "Add ASP .NET Folder" that
    > allows you to add local and global resources folders that contain resx
    > files to be accessed directly in the code. I haven't found anything
    > similar to that when working with a DLL library. Is there some standard
    > way I'm supposed to add resources to a DLL?
    > Any info is appreciated,
    > Thanks.
    > Mark
     
    , Jul 18, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Anushi
    Replies:
    5
    Views:
    8,771
  2. Jitendra Sanghani
    Replies:
    1
    Views:
    743
    tina.10
    Mar 19, 2012
  3. Russell E. Owen
    Replies:
    0
    Views:
    711
    Russell E. Owen
    Sep 8, 2006
  4. Onder
    Replies:
    1
    Views:
    324
    Alex Meleta
    Jul 13, 2007
  5. H. Simpson
    Replies:
    4
    Views:
    281
    H. Simpson
    Aug 3, 2004
Loading...

Share This Page