Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

CoreLib doesn't implement Environment.GetEnvironmentVariable and friends #6

Closed

Description

@MichalStrehovsky

GetEnvironmentVariable and ExpandEnvironment are implemented like this:

public static String GetEnvironmentVariable(String variable)
{
    if (variable == null)
        throw new ArgumentNullException("variable");

    // Environment variable accessors are not approved modern API.
    // Behave as if the variable was not found in this case.
    return null;
}

We need real implementations.

Activity

  1. weshaggard commented on Oct 9, 2015

    @weshaggard
    Member

    Yes that was their implementation for UWP. I agree we need this supported for this scenario. @AlexGhiondea should be able to handle it.

  2. added this to the P0 milestone on Oct 28, 2015
  3. MichalStrehovsky commented on Oct 28, 2015

    @MichalStrehovsky
    MemberAuthor

    We might need to at least look at this in terms of the demo.

    System.Console uses this for various things. I didn't investigate it now fully, but this did show up at some point when I did the original Hello World ILToCpp bringup. It's possible it was only needed for colors, but I don't remember anymore.

  4. AlexGhiondea commented on Oct 28, 2015

    @AlexGhiondea
    Contributor

    I have a hacked version of this working on windows already. I will finalize it tomorrow and then I'll get the PAL implemented on Linux (we already have a cross plat implementation in CoreCLR for this).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions