Xamarin.Forms: Localization of the UWP app

前端 未结 2 1271
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-06 08:04

If I run my app on an UWP device I get the following warning in the Output window:

MakePRI : warning 0xdef00522: Resources found for lang

2条回答
  •  难免孤独
    2021-01-06 08:51

    Just to extend answer from Nico Zhu - MSFT if you are using .Net Standard there is no assemblyInfo.cs file because everything is stored in the csproj file. So just go to properties of the shared project and change the Project neutral language to whatever your resx default file is. or you can right click on the project and edit the project and the line below.

    For me problem was,after converting from PCL to Net Standard, suddently UWP application wasnt picking the default resource file which was en-US. I recognized because i was having this setting in assmeblyInfo.cs and since It was removed, it didnt work. But somehow it works fine for Android project.

      
         en-US
      
    

提交回复
热议问题