Update and add to Resource.resx file via code.
We are adding localization to our product and want to automate the process of updating the resx file with the new keys and values so that we can run the translations automatically. Right now it is cumbersome as we need to manually add the entries into the resx when we add new values.
Any clue on how to programmatically build a resources.resx file?
Any clue on how to programmatically build a resources.resx file?
2 Replies
There should be a way to accomplish that.
ResXResourceReader
and ResXResourceWriter
from the System.Resources
namespace should enable you to do just thatThis is correct. I finally got it. I had to add WindowForms to my ConsoleApp to be able to access that System.Resources.dll