1

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?

4

1 に答える 1

0

解決策を見つけました。Windows Phone ライブラリ アセンブリ (同じソリューション内のプロジェクトではなく、.dll ファイル自体) を参照する場合、そのリソース フォルダーがアセンブリと同じディレクトリにあることを確認する必要があります。たとえば、ライブラリがスペイン語にローカライズされている場合、bin フォルダーから .dll ファイルをコピーするだけでなく、「es」フォルダーも同じディレクトリにコピーする必要があります。

于 2014-01-08T18:46:43.923 に答える