diff --git a/src/System.Management.Automation/engine/PSVersionInfo.cs b/src/System.Management.Automation/engine/PSVersionInfo.cs index 95a3118177..b5f8bad9ae 100644 --- a/src/System.Management.Automation/engine/PSVersionInfo.cs +++ b/src/System.Management.Automation/engine/PSVersionInfo.cs @@ -73,7 +73,7 @@ namespace System.Management.Automation s_psVersionTable[PSVersionInfo.WSManStackVersionName] = GetWSManStackVersion(); s_psVersionTable[PSPlatformName] = Environment.OSVersion.Platform.ToString(); #if CORECLR -            s_psVersionTable[PSCLRVersionName] = null; + s_psVersionTable[PSCLRVersionName] = null; s_psVersionTable[PSOSName] = Runtime.InteropServices.RuntimeInformation.OSDescription.ToString(); #else s_psVersionTable[PSCLRVersionName] = Environment.Version;