Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit b8685be

Browse files
committed
Updating the dotnet --info message.
1 parent 65a761a commit b8685be

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/dotnet/Program.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -260,14 +260,12 @@ private static void PrintVersion()
260260

261261
private static void PrintInfo()
262262
{
263-
HelpCommand.PrintVersionHeader();
264-
265263
DotnetVersionFile versionFile = DotnetFiles.VersionFileObject;
266264
var commitSha = versionFile.CommitSha ?? "N/A";
267265
Reporter.Output.WriteLine();
268-
Reporter.Output.WriteLine("Product Information:");
269-
Reporter.Output.WriteLine($" Version: {Product.Version}");
270-
Reporter.Output.WriteLine($" Commit SHA-1 hash: {commitSha}");
266+
Reporter.Output.WriteLine(".NET Core SDK (reflecting any global.json):");
267+
Reporter.Output.WriteLine($" Version: {Product.Version}");
268+
Reporter.Output.WriteLine($" Commit: {commitSha}");
271269
Reporter.Output.WriteLine();
272270
Reporter.Output.WriteLine("Runtime Environment:");
273271
Reporter.Output.WriteLine($" OS Name: {RuntimeEnvironment.OperatingSystem}");

test/dotnet.Tests/GivenThatTheUserIsRunningDotNetForTheFirstTime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void UsingDotnetForTheFirstTimeSucceeds()
6060
[Fact]
6161
public void UsingDotnetForTheFirstTimeWithNonVerbsDoesNotPrintEula()
6262
{
63-
string firstTimeNonVerbUseMessage = Cli.Utils.LocalizableStrings.DotNetCommandLineTools;
63+
const string firstTimeNonVerbUseMessage = $"{string.NewLine}.NET Core SDK (reflecting any global.json):";
6464

6565
_firstDotnetNonVerbUseCommandResult.StdOut
6666
.Should()

0 commit comments

Comments
 (0)