Bug 59140 - Access to (file) resources from portable library not possible
Summary: Access to (file) resources from portable library not possible
Status: CONFIRMED
Alias: None
Product: Live Player
Classification: Xamarin
Component: Mobile App ()
Version: 1.0.507
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-08-31 10:37 UTC by Martin Jørgensen
Modified: 2017-08-31 17:01 UTC (History)
1 user (show)

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

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 59140 on Developer Community 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
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:
Status:
CONFIRMED

Description Martin Jørgensen 2017-08-31 10:37:20 UTC
It is not possible to access (file) resources from portable library using:

1: Assembly assembly = typeof(StringLocalizer).GetTypeInfo().Assembly;
2: string[] resources = assembly.GetManifestResourceNames();
3:
4: using (Stream languageFileStream = assembly.GetManifestResourceStream("App.Resources.Localizer.Texts.xml"))
5: {
6:   // Read from stream
7: }

- Call 'GetManifestResourceNames' (added for debug purpose) not working
- Call 'GetManifestResourceStream' not working

Running final App on iOS/Android works as expected
Comment 1 James Montemagno [MSFT] 2017-08-31 16:57:54 UTC
This is the same as: https://bugzilla.xamarin.com/show_bug.cgi?id=58105  however, will leave open as it references a file.
Comment 2 James Montemagno [MSFT] 2017-08-31 17:01:31 UTC
This is referenced as a current limitation as: https://developer.xamarin.com/guides/cross-platform/live/limitations/