Failed to load Resouces from a Resource File

Asked

Viewed 61 times

1

I’m trying to make my Xamarin application internationalize. I followed the tutorial (https://developer.xamarin.com/guides/xamarin-forms/advanced/localization/) that works on Android, however, when testo in windows is exceeded the exception System.Resources.MissingManifestResourceException.
More specifically

An exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.ni.dll but was not handled in user code

Additional information: Unable to load resources for resource file "Projeto.Resources.AppResources" in package "df348a55-72cd-4de3-a7db-cb0ecacf1e0b".

How can I solve this problem?

Obs1: There are two RESX files (Appresources.resx and Appresources.es.resx) in a PCL that is referenced in the UWP project.
Note: Na TranslateExtension when I use it

ResourceManager resmgr = new ResourceManager(ResourceId
                            , typeof(TranslateExtension).GetTypeInfo().Assembly);

I’m using

ResourceManager resmgr = AppResources.ResourceManager;
  • Which line does the error occur (ask the question if possible)? Which version of xamarin?. Your UI is via code or XAML?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.