Search code examples
c#visual-studiouwpresx

Resx file does not get deployed


I have a ClassLibrary (.NetStandard 2.0) which only contains the .resx-files which get used in more than one application.

I noticed that one of those resx-files gets not deployed so my application can not access the values for the language I need.

enter image description here

So I problem is that I get all files from Dictionary but from MobileDictionary only the MobileDictionary.en one.

I compared the properties of the different file and I noticed that the MobileDictionary one was set to Embedded resource and Copy always while the Dictionary was set to Embedded resource and Do not copy so I switched to the same settings but it didn't work.

In my UWP-Project it is not working while on Android it works fine.

Any suggestions?

Thanks in advance.

EDIT:

Possible Build actions

enter image description here


Solution

  • After Performing many testing and comparing I noticed that even if the .resx-file has a default language, I needed to have the exact same language as the default one so if my .resx-file is "es" you need an en.resx-file, so I added MobileDictionary.es.resx too and it worked.