I'm trying to read in the text (as a string
) of an XML file from my Resources
. The XML file is named MyXMLResourceFile.resx
.
I tried using the C# way using
let myFile : string = Properties.Resources.MyXMLResourceFile
but it is giving me the error (under Properties
):
The namespace or module 'Properties' is not defined.
I'm assuming I'm missing an open
but have no idea what it would be.
Sorry, I'm still pretty new to F# coming from VB.
Additional information:
I made the resx
file myself per this SO answer I then looked to see how others accessed it. In C# they did Properties.Resources.XXXX per this project I saw you could use ResourceManager
but didn't see any method to read the whole file directly into a string
.