Adding a second workaround for the build failure. Same fix as the other one though.
This commit is contained in:
parent
b020b6f6b1
commit
7802b957d3
2 changed files with 5 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -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}");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue