-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Comments
Thanks for your feedback @StevenBonePgh. @krwq, @tarekgh can you guys comment on this issue? |
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. |
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. |
@axelandrejs, just checking in on this topic. Has there been any further action on follow up? |
Our doc writer is currently updating the documentation. I don't have an ETA for when it goes live. Are you still blocked? |
@axelandrejs has this been done already? Can you paste the link for the content that got updated if so? |
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.
The text was updated successfully, but these errors were encountered: