Adding a second workaround for the build failure. Same fix as the other one though.

This commit is contained in:
Livar Cunha 2017-01-18 10:17:37 -08:00
parent b020b6f6b1
commit 7802b957d3
2 changed files with 5 additions and 2 deletions

View file

@ -18,6 +18,9 @@
<Version>1.0.0-*</Version>
</DotNetCliToolReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="NewtonSoft.Json" Version="9.0.1" />
</ItemGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DefineConstants>$(DefineConstants);RELEASE;TRACE</DefineConstants>
<Optimize>true</Optimize>

View file

@ -251,8 +251,6 @@ namespace Microsoft.DotNet.TestFramework
var restoreArgs = new string[] { "restore", projFile.FullName };
var commandResult = Command.Create(_dotnetExeFile.FullName, restoreArgs)
.CaptureStdOut()
.CaptureStdErr()
.Execute();
int exitCode = commandResult.ExitCode;
@ -267,6 +265,8 @@ namespace Microsoft.DotNet.TestFramework
throw new Exception(message);
}
Console.WriteLine($"TestAsset Restore '{_assetName}' for {projFile.FullName} exited with {exitCode}");
}
}