Skip to content

ProjInfo sets environment variables for the current process. #191

Open
@safesparrow

Description

@safesparrow

Here environment variables are set for the current process.

This means that spawning an unrelated child process after using ProjInfo is affected by those.
In my case, I have to reset them after, otherwise child dotnet processes that I run myself don't work as expected.

Ideally ProjInfo would not change current process's environment, and if it does, it should at least revert any changes it makes (which doesn't help if other things are using the Environment in parallel, but is better than the current state).

If the environment is only set for the benefit of child processes, could ProcessStartInfo be utilised to set them for child processes only?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions