By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,899 Members | 1,535 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,899 IT Pros & Developers. It's quick & easy.

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

P: n/a
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 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

Ta********@gmail.com 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 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.