From 439349899b0e069f1df01c17602396a4e25692ca Mon Sep 17 00:00:00 2001 From: "N. Taylor Mullen" Date: Tue, 15 Jan 2019 14:53:20 -0800 Subject: [PATCH] Prioritize local dotnet when running SDK Razor tests. - The SDK tests were occasionally failing with access denied due to the test using the machines dotnet.exe (instead of the local projects dotnet.exe). dotnet/aspnetcore-tooling#1667 \n\nCommit migrated from https://github.com/dotnet/aspnetcore-tooling/commit/bb2134a536f7fd5aeec4466cde3ba3e891f78af2 --- .../test/IntegrationTests/MSBuildProcessManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildProcessManager.cs b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildProcessManager.cs index 30b8469289..c420b47bb8 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildProcessManager.cs +++ b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildProcessManager.cs @@ -6,6 +6,7 @@ using System.Diagnostics; using System.Text; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.CommandLineUtils; namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests { @@ -38,7 +39,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests } else { - processStartInfo.FileName = "dotnet"; + processStartInfo.FileName = DotNetMuxer.MuxerPathOrDefault(); processStartInfo.Arguments = $"msbuild {arguments}"; }