Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow environment variables to be set to null to remove them #110

Merged

Conversation

vipentti
Copy link
Contributor

@vipentti vipentti commented Apr 1, 2021

This allows environment variables to be set to null to remove them.
When an environment variable is set to null,
it is removed from the Process.StartInfo.Environment

This fixes #109

And is a workaround for dotnet/runtime#34446 , which I think is fixed in .NET 6.

This is probably a breaking change, because of the nullability change

This allows environment variables to be set to null to remove them.
When an environment variable is set to null,
it is removed from the `Process.StartInfo.Environment`
@Tyrrrz
Copy link
Owner

Tyrrrz commented Apr 1, 2021

Looks good, thanks!

@Tyrrrz Tyrrrz merged commit ab5f98d into Tyrrrz:master Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow null values in environment variables
2 participants