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:
parent
afafe80084
commit
16dcd770f9
4 changed files with 26 additions and 24 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue