Address PR feedback

- Use the right path separator char for unix.
- Contruct some of the args to crossgen outside the loop.
- Add the null check inside Command.Environment.
This commit is contained in:
Sridhar Periyasamy 2016-04-15 10:31:17 -07:00
parent afafe80084
commit 16dcd770f9
4 changed files with 26 additions and 24 deletions

View file

@ -136,6 +136,11 @@ namespace Microsoft.DotNet.Cli.Build.Framework
public Command Environment(IDictionary<string, string> env)
{
if (env == null)
{
return this;
}
foreach (var item in env)
{
_process.StartInfo.Environment[item.Key] = item.Value;