Thank you for the answer.
First I have to make some corrections to the answer :
- correctly is Application.GetResourceString(new Uri(filename));
- "Build action" has to be "Resource" not "Content"
This solution works fine for files of type: ".config", ".txt", ".xml", ".json", but how to
load other files (of any type, binary files, etc)?
I have tried Application.GetResourceStream, but I got an exception :
It is weird that the error message is about GetResourceString and not GetResourceStream.
Do you have any other idea of a possible solution to load any file?