-
Notifications
You must be signed in to change notification settings - Fork 36
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
Only globalization-invariant mode is supported in the WorkerService #67
Comments
The issue is fixed by changing What's the reason of using hard-coded DOTNET_SYSTEM_GLOBALIZATION_INVARIANT = 1 in this place? |
Hello! Thank you for your feedback.
The fact that it's hardcoded was overlooked when migrating these lines from the net6.0 Mono Platform: I started out replicating the resourceLoader but it turned out to be very complicated so I kind of dropped it but this line remained. So I agree, this is a problem, the line isn't really supposed to be there, at least not hardcoded. Your suggestion is that I add BlazorWorker/src/BlazorWorker/BlazorWorker.js Lines 95 to 96 in fa07608
What do you think? |
I absolutely agree, it’s better if there are no specific reasons for using it. I will check in my project too and provide the feedback |
Unfortunately, it's not worked without DOTNET_SYSTEM_GLOBALIZATION_INVARIANT = 1 in my case, |
I have decided to parametrize the environment variables, so it can work for you with a config similar to the one you provided. As I'm hesitant to provide a non-standard value for the DOTNET_SYSTEM_GLOBALIZATION_PREDEFINED_CULTURES_ONLY value. |
* Fix AddHttpClient extension code being ignored on .net6 * Adds options for environment variables. Fixes #67 * Link to examples in error message. * Some cleanup + docs
An attempt to get CultureInfo with System.Globalization.CultureInfo.GetCultureInfo(String name)
throws exception "Only the invariant culture is supported in globalization-invariant mode" in the WorkerService (net 6.0)
The text was updated successfully, but these errors were encountered: