Exception System.IO.NotFound to access resx files in Xamarin Forms

0
Good afternoon. I'm having a problem accessing defined values in resx files from shared code in Xamarin Forms. No failure to compile, but upon execution I get an exception of type File.IO.NotFound, as if the resource file did not exist inside the mobile device (either in the emulator or on a physical device. To access the value inside the resource file, I use the following static method: Resources.Colors.ColorPrimary. Actions that have already been taken: Compile action change to Copy Always, resource class changed to public. ps: The files are generated in the bin \ debug directory

    
asked by anonymous 30.01.2018 / 16:05

1 answer

0

Solved. Since I was using a different CultureInfo, I had to create all the resource files for the specified culture. Since I had separated a resource file for each purpose (Colors, Values and String) I had to create an equal file for each culture.

    
30.01.2018 / 16:12