a66546d8fb
Improved test diagnostics Providing diagnostics about failed process. Workaround for https://github.com/NuGet/Home/issues/1977 get past crossgen errors!
25 lines
No EOL
776 B
C#
25 lines
No EOL
776 B
C#
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
using System.Diagnostics;
|
|
|
|
namespace Microsoft.DotNet.Cli.Utils
|
|
{
|
|
public struct CommandResult
|
|
{
|
|
public static readonly CommandResult Empty = new CommandResult();
|
|
|
|
public ProcessStartInfo StartInfo { get; }
|
|
public int ExitCode { get; }
|
|
public string StdOut { get; }
|
|
public string StdErr { get; }
|
|
|
|
public CommandResult(ProcessStartInfo startInfo, int exitCode, string stdOut, string stdErr)
|
|
{
|
|
StartInfo = startInfo;
|
|
ExitCode = exitCode;
|
|
StdOut = stdOut;
|
|
StdErr = stdErr;
|
|
}
|
|
}
|
|
} |