From 9d19a27b6b988abbd225688f1e808565a766824d Mon Sep 17 00:00:00 2001 From: Chris R Date: Fri, 20 Nov 2015 15:44:51 -0800 Subject: [PATCH] #481 Add the DNX runtime to the path when lanching test processes. --- .../Deployers/ApplicationDeployer.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.AspNet.Server.Testing/Deployers/ApplicationDeployer.cs b/src/Microsoft.AspNet.Server.Testing/Deployers/ApplicationDeployer.cs index 477348f7af..df1d0bcbe3 100644 --- a/src/Microsoft.AspNet.Server.Testing/Deployers/ApplicationDeployer.cs +++ b/src/Microsoft.AspNet.Server.Testing/Deployers/ApplicationDeployer.cs @@ -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("PATH", newPath)); + return ChosenRuntimeName; }