C# – Referencing resource files from multiple projects in a solution

clocalizationresx

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?

Best Answer

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