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.
Is there any way to reference resx files in another project, within the same solution?

Mohamed Azarudeen ZRank #297 · 8.5K reputationPosted Jul 10, 2023, 9:05 AM EDT
Hi Asmaa
yes its possible
Create a project that will contain the shared resource file:
.resx) to this project. This file will contain the shared strings and translations.Set the access modifier for the resource file:
Add a reference to the shared resource file:
Access the shared resource file in the referencing project:
SharedResources.Properties.ResourceManagerclass.using SharedResources.Properties; // Namespace of the project containing the shared resource file // Accessing a string from the shared resource file string localizedString = Resources.MySharedString;