Skip to content

DOTNET_SYSTEM_GLOBALIZATION_INVARIANT is not working on linux-alpine base images #77548

@mahmoud-syr

Description

@mahmoud-syr

Issue Description

When running .net 6 docker containers in debug mode with DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false, when the base image is 6.0-alpine, container crashes with exit code 4294967295 and VS shows the message:
"One or more error occurred.
Failed to launch debug adapter. Additional information may be available in the output window.
The Operation was cancelled"

The output window only shows the following line:

The program '' has exited with code 4294967295 (0xffffffff).

Steps to Reproduce

  1. Create new console project
  2. Add docker support
  3. Change docker base image to 6.0-alpine
  4. Add ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false to the docker file
  5. Run the console app in docker configuration

Expected Behavior

It should work, I think? 🤔, I mean I just want to install multiple languages/cultures, do I need the full linux image for this?

Actual Behavior

It is crashing all the times.

Versions & Configurations

MSBuild version:

Microsoft (R) Build Engine version 17.2.1+52cd2da31 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

17.2.1.25201

Visual studio 2022 community 17.2.3
Dotnet version 6.0.303

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions