I have some test data (json files) that I use when testing some software. This is static data, and I need tests to run locally and on build machines that I don't need to control. To get even access to test data (json files), I put them in a RESX file, and this works fine, except that I had to change the file extension from .json to .txt.
If I left it as .json, it was added to the resx file as a βbinaryβ rather than a βtext fileβ. This in itself is not the end of the path ... I just read the bits and converted them back to a string, but when I tried to deserialize the string (after converting from bytes []), I got an exception for unexpected char at position 0 of line 0.
The only real drawback of the txt extension is that I am losing color coding in the IDE for the JSON file.
Is there a way to get RESX to treat the .json extension as a "text file"?
source share