question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Locale warnings during MVC Core application publish process

See original GitHub issue

Steps 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:closed
  • Created 7 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
livarcocccommented, Mar 16, 2017

Can we close this issue? Thanks for looking @MichaelSimons

0reactions
svalliscommented, Mar 16, 2017

@MichaelSimons Understood and agreed. Appreciate your help, thanks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found