Skip to content

Adding roslyn version info in the dotnet --info output #44041

@WeihanLi

Description

@WeihanLi

Is your feature request related to a problem? Please describe.

It would be easy to know whether the Roslyn's new features are available or not

Describe the solution you'd like

Currently, we already have the MSBuild version, maybe we could add the Roslyn version also

dotnet info output

public static void PrintInfo()
{
DotnetVersionFile versionFile = DotnetFiles.VersionFileObject;
var commitSha = versionFile.CommitSha ?? "N/A";
Reporter.Output.WriteLine($"{LocalizableStrings.DotNetSdkInfoLabel}");
Reporter.Output.WriteLine($" Version: {Product.Version}");
Reporter.Output.WriteLine($" Commit: {commitSha}");
Reporter.Output.WriteLine($" Workload version: {WorkloadCommandParser.GetWorkloadsVersion()}");
Reporter.Output.WriteLine($" MSBuild version: {MSBuildForwardingAppWithoutLogging.MSBuildVersion.ToString()}");

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions