private static int ShowSdkInfo() { var log = new OutputLogger(); var command = new DotnetCommand(log, "--info"); var testDirectory = TestDirectory.Create(Path.Combine(TestContext.Current.TestExecutionDirectory, "sdkinfo")); command.WorkingDirectory = testDirectory.Path; var result = command.Execute(); Console.WriteLine(result.StdOut); if (result.ExitCode != 0) { Console.WriteLine(log.ToString()); } return(result.ExitCode); }