MissingManifestResourceException on Windows Phone 8.1 with .resx resources

后端 未结 4 2114
野性不改
野性不改 2021-02-07 11:59

I\'m developing a Windows Phone 8.1 app that also targets Android(Xamarin)

As ever I added my string resources(.resx) on a PCL and referenced them on my launcher project

4条回答
  •  深忆病人
    2021-02-07 12:27

    I got to the bottom of this today. While bundling the app package, resources in dependencies that are not for a language being used by the app are stripped out. To prevent this from happening, add the following assembly-level attribute to your application.

    using System.Resources;
    
    [assembly: NeutralResourcesLanguage("en")]
    

提交回复
热议问题