Referencing resource files from multiple projects in a solution

Joda picture Joda · Sep 2, 2008 · Viewed 20.9k times · Source

I am working on localization for a asp.net application that consists of several projects.

For this, there are some strings that are used in several of these projects. Naturally, I would prefer to have only one copy of the resource file in each project.

Since the resource files don't have an namespace (at least as far as I can tell), they can't be accessed like regular classes.

Is there any way to reference resx files in another project, within the same solution?

Answer

Jon Limjap picture Jon Limjap · Sep 2, 2008

You can just create a class library project, add a resource file there, and then refer to that assembly for common resources.