Pregunta

I have a Windows Phone class library with a resources (.resx) file. I have a reference to the class library from an actual Windows Phone Application project. Everything works well when I reference the library project in the solution, but when I add a reference to the actual assembly (.dll) file then localization stops working and the Windows Phone Application just uses the default locale when navigating to the pages declared in the library assembly. Does anyone know why?

¿Fue útil?

Solución

Found the solution. When you reference a Windows Phone library assembly (the .dll file itself, not its project within the same solution), you have to make sure that its resource folders are in the same directory as the assembly. That is, if your library is localized in Spanish for example, besides copying the .dll file from your bin folder, you must also copy the 'es' folder to the same directory.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top