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 bb2134a536
This commit is contained in:
N. Taylor Mullen 2019-01-15 14:53:20 -08:00
parent 7eb90cbbbd
commit 439349899b
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ using System.Diagnostics;
using System.Text; using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.Extensions.CommandLineUtils;
namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
{ {
@ -38,7 +39,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
} }
else else
{ {
processStartInfo.FileName = "dotnet"; processStartInfo.FileName = DotNetMuxer.MuxerPathOrDefault();
processStartInfo.Arguments = $"msbuild {arguments}"; processStartInfo.Arguments = $"msbuild {arguments}";
} }