Locale warnings during MVC Core application publish process
See original GitHub issueSteps to reproduce
An ASP.NET Core MVC application that self-publishes within its own Docker image based on microsoft/dotnet:1.1.1-sdk
and sets its locale information using the following commands:
ENV LANG en_GB.UTF-8
ENV LANGUAGE en_GB:en
ENV LC_ALL en_GB.UTF-8
Expected behavior
Publish without errors or warnings.
Actual behavior
The following warnings, which seem to occur once per project:
Microsoft (R) Build Engine version 15.1.548.43366
Copyright (C) Microsoft Corporation. All rights reserved.
bash : warning : setlocale: LC_ALL: cannot change locale (en_GB.UTF-8) [/tmp/src/Library/Library.csproj]
Library -> /tmp/src/Library/bin/Release/netcoreapp1.1/Library.dll
bash : warning : setlocale: LC_ALL: cannot change locale (en_GB.UTF-8) [/tmp/src/WebApp/WebApp.csproj]
WebApp -> /tmp/src/WebApp/bin/Release/netcoreapp1.1/WebApp.dll
Razor view compilation for WebApp -> obj/Release/netcoreapp1.1/WebApp.PrecompiledViews.dll
They are just warnings, and I haven’t noticed any larger issues that I would attribute to them, but I’d like to understand what could be causing them? There were no warnings when using the project.json
cli to publish.
Environment data
Docker environment derived from microsoft/dotnet:1.1.1-sdk
.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Localization - .NET
Localization is the process of translating an application's resources into localized versions for each culture that the application will ...
Read more >ASP.NET Core MVC Localization Warning
I have an ASP.NET Core MVC app that use resource localization. It currently supports only one culture (fa-IR) and I want to all...
Read more >[Fix]-ASP.NET Core MVC Localization Warning
In your appsettings.json Logging configuration add Microsoft.AspNetCore.Localization and set the value to Error. In that case the messages will no longer appear ...
Read more >Detecting and setting the Locale on the Current ASP.Net Web ...
Here's a useful tip on how to switch the Locale in your Web Applications to provide proper number and date formatting for users...
Read more >Pseudo-localization with ASP.NET Core - Martin Costello's Blog
Using pseudo-localization with ASP.NET Core to help test your application is ready for globalization, internationalization and localization.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can we close this issue? Thanks for looking @MichaelSimons
@MichaelSimons Understood and agreed. Appreciate your help, thanks.