Hi!
My problem is that i tried to use resource files in a project using the ranorex IDE and not Visual Studio.
I created the resource file, added a string value and tried to access it using resource reader like this :
//Getting Data from the Resource file.
string appToRun;
System.Resources.ResourceReader rr = new ResourceReader("MyData");
IDictionaryEnumerator id = rr.GetEnumerator();
while(id.MoveNext()) {
if (id.Key.Equals("AppToRun")) {
appToRun = id.Value.ToString();
}
}
rr.Close();
First it did not find MyData because it looked for the file, not in project. So okey i entere ../../MyData.resx.
It said the file is not a valid resource file, although i created it with the IDE.
Is there another solution to access and use resource files in ranorex not using Visual Studio?
Thank you,
Gergely.