Skip to content

Does Globalization Invariant Mode affect exception messages locations in .NET 6.0? #62481

Answered by tarekgh
kiminuo asked this question in Q&A
Discussion options

You must be logged in to vote

To answer the original question in this issue:

The resource lookup depends on the CultureInfo. If no specific culture is specified during the resource lookup request, then CultureInfo.CurrentUICulture will be used for the resource lookup. When enabling Globalization Invariant mode, in .NET 6.0 we only support InvariantCulture by default. That means the resource lookup will always be performed using the Invariant culture and most of the resources would be picked up from neutral resources specified by the attribute NeutralResourcesLanguageAttribute on the code assemblies.

If you are using .NET 5.0 or NET Core 3.1, then in Invariant mode, we allow creating different cultures and resource loo…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@daiplusplus
Comment options

@kiminuo
Comment options

@danmoseley
Comment options

@daiplusplus
Comment options

@danmoseley
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by tarekgh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants