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 ZPosted Jul 10, 2023, 1:05 PM
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.