Overwrite existing env vars

This commit is contained in:
David Fowler 2015-11-01 06:24:31 -08:00
parent 27f8300e82
commit e372b32b61

View file

@ -158,7 +158,7 @@ namespace Microsoft.DotNet.Cli.Utils
public Command EnvironmentVariable(string name, string value) public Command EnvironmentVariable(string name, string value)
{ {
_process.StartInfo.Environment.Add(name, value); _process.StartInfo.Environment[name] = value;
return this; return this;
} }