Skip to content

UWP name parameter with period #781

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
StevenBonePgh opened this issue Jun 1, 2018 — with docs.microsoft.com · 6 comments
Open

UWP name parameter with period #781

StevenBonePgh opened this issue Jun 1, 2018 — with docs.microsoft.com · 6 comments
Labels
area-System.Resources .net/prod Pri2 Indicates issues/PRs that are medium priority waiting-on-feedback Indicates PRs that are waiting for feedback from SMEs before they can be merged
Milestone

Comments

Copy link

Getting a string resource from a resx file (satellite assembly) under UWP with this API (Xamarin.Forms called in a .NET Standard 2.0 assembly), if the name has a period in it this will return null (must have at least two satellite assemblies to see it). It can be retrieved using forward slash. If resource is "foo.bar". this works as the name parameter on .NET Framework 4.5.2, under UWP [Microsoft.NETCore.UniversalWindowsPlatform 6.0.1] this will return null. Passing "foo/bar" will successfully get the resource, but only under UWP. I don't know if this is a documentation bug or a bug in the platform - feel free to let me know so I can raise a bug in the proper place. Similar issue with Windows.ApplicationModel.Resources.ResourceLoader as per https://stackoverflow.com/questions/28505933/using-resourceloader-getstring-method-to-retrieve-resources-with-dots-in-the-key


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@mairaw
Copy link
Contributor

mairaw commented Jul 9, 2018

Thanks for your feedback @StevenBonePgh. @krwq, @tarekgh can you guys comment on this issue?

@tarekgh
Copy link
Member

tarekgh commented Jul 9, 2018

Looks this is a Windows Runtime issue. @axelandrejs can comment on that.

Just to mention, in UWP, the framework just calls Windows ResourceManager for retrieving the resources.

@axelandrejs
Copy link

Thanks for reporting this. The resource manager uses / for all namespace separation, which includes the assembly namespace or the element. When the API was built, internal consistency was valued over consistency with other frameworks. I'll follow up to improve the documentation.

@JRAlexander
Copy link
Contributor

@axelandrejs, just checking in on this topic. Has there been any further action on follow up?

@axelandrejs
Copy link

Our doc writer is currently updating the documentation. I don't have an ETA for when it goes live.

Are you still blocked?

@BillWagner BillWagner transferred this issue from dotnet/docs Nov 20, 2018
@dotnet-bot dotnet-bot added untriaged New issue has not been triaged by the area owner Source - Docs.ms and removed rerun-labels labels Nov 20, 2018
@mairaw
Copy link
Contributor

mairaw commented Nov 26, 2018

@axelandrejs has this been done already? Can you paste the link for the content that got updated if so?

@mairaw mairaw added waiting-on-feedback Indicates PRs that are waiting for feedback from SMEs before they can be merged and removed untriaged New issue has not been triaged by the area owner labels Nov 26, 2018
@mairaw mairaw added this to the Backlog milestone Nov 26, 2018
@PRMerger10 PRMerger10 added the Pri2 Indicates issues/PRs that are medium priority label Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Resources .net/prod Pri2 Indicates issues/PRs that are medium priority waiting-on-feedback Indicates PRs that are waiting for feedback from SMEs before they can be merged
Projects
None yet
Development

No branches or pull requests

9 participants