#481 Add the DNX runtime to the path when lanching test processes.

This commit is contained in:
Chris R 2015-11-20 15:44:51 -08:00
parent 6ee745f7f5
commit 9d19a27b6b
1 changed files with 5 additions and 1 deletions

View File

@ -2,8 +2,8 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
@ -137,6 +137,10 @@ namespace Microsoft.AspNet.Server.Testing
Logger.LogInformation($"Chosen runtime path is {ChosenRuntimePath}");
// Work around win7 search path issues.
var newPath = ChosenRuntimePath + Path.PathSeparator + Environment.GetEnvironmentVariable("PATH");
DeploymentParameters.EnvironmentVariables.Add(new KeyValuePair<string, string>("PATH", newPath));
return ChosenRuntimeName;
}