In my ASP.NET MVC application, I manage localized texts in .resx files located in App_GlobalResources
folder. I am able to retrieve any text value in any file knowing its key.
Now, I want to retrieve all key/value pairs in a particular resource file in order to write the result to some JavaScript. A search revealed that I might be able to use ResXResourceReader
class and iterate through the pairs; however the class is unfortunately located in the System.Windows.Forms.dll
and I don't want to wire that dependency to my web app. Is there any other way I can implement this feature?