Bug 58185 - Localized resources is removed from PCL when it compiled with Bundle assemblies into native code option enabled
Summary: Localized resources is removed from PCL when it compiled with Bundle assembli...
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Marek Habersack
Depends on:
Reported: 2017-07-17 10:37 UTC by subbota-job
Modified: 2017-07-19 15:16 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

reproduction solution (28.01 KB, application/zip)
2017-07-19 09:54 UTC, subbota-job

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 58185 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description subbota-job 2017-07-17 10:37:48 UTC
If I compile a Xamarin.Android app with the 'Bundle assemblies into native code' option enabled, the compiler removes localized resources from satellite PCL.
Comment 1 Jon Douglas [MSFT] 2017-07-17 15:39:07 UTC
Hello! Thanks for the report on this issue. If it's possible, we will want more details regarding this issue. You can see our bug writing guide for more help in reporting this bug.


Secondly you can check out our "best practices" page for ways you can help us resolve the issue much quicker:


Thus moving forward, we will want a minimal reproduction project that demonstrates the compiler removing these resources. Please also include your Version Information so we know what version of Xamarin.Android you're using.

Thank you!
Comment 2 subbota-job 2017-07-19 09:52:55 UTC
Microsoft Visual Studio Enterprise 2017 
Version 15.2 (26430.16) Release
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Enterprise

Visual Basic 2017   00369-60000-00001-AA141
Microsoft Visual Basic 2017

Visual C# 2017   00369-60000-00001-AA141
Microsoft Visual C# 2017

Visual C++ 2017   00369-60000-00001-AA141
Microsoft Visual C++ 2017

Application Insights Tools for Visual Studio Package   8.6.00404.2
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017   15.0.30503.0
ASP.NET and Web Tools 2017

ASP.NET Web Frameworks and Tools 2017   5.2.50303.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0   15.0.30209.0
Azure App Service Tools v3.0.0

Common Azure Tools   1.9
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service   2.0
JavaScript Language Service

KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info

Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.50131.1

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   4.2.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

P4VS - Helix Plugin for Visual Studio   2017.1.152.674
P4VS is the Perforce Helix integration for Microsoft Visual Studio. P4VS provides developers working within Visual Studio access to Helix version control features, including check in/check out, view file history, and more.

SQL Server Data Tools   15.1.61702.140
Microsoft SQL Server Data Tools

TypeScript tools for Visual Studio

Visual C++ for Cross Platform Mobile Development (Android)   15.0.26228.00
Visual C++ for Cross Platform Mobile Development (Android)

Visual C++ for Cross Platform Mobile Development (iOS)   15.0.26228.00
Visual C++ for Cross Platform Mobile Development (iOS)

Visual Studio tools for CMake   1.0
Visual Studio tools for CMake

Xamarin (fec6f88)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK (9dbc4c5)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK (ad35de4)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

The steps of reproduce.
1. Setup 'ru' (Russian) language as default on simulator.
2. Compile and run Droid project.
Result: you will see 'not localized text'
Expected: 'Локализованный текст'
3. Uncheck option 'Bundle assemblies into native code. 
4. Run the app one more.
5. You'll see the expected text.

If you need some other information feel free to ask about it. Thank you.
Comment 3 subbota-job 2017-07-19 09:54:21 UTC
Created attachment 23651 [details]
reproduction solution
Comment 4 Jon Douglas [MSFT] 2017-07-19 15:16:48 UTC
I can CONFIRM this behavior based on the reproduction steps from https://bugzilla.xamarin.com/show_bug.cgi?id=58185#c2 and the reproduction from https://bugzilla.xamarin.com/show_bug.cgi?id=58185#c3

It seems that Bundle assemblies into native code is not taking account of the PCL's Properties/Resources.resx files.