@@ -53,20 +53,20 @@ public static class PSVersionInfo
53
53
/// For each later release of PowerShell, this constant needs to
54
54
/// be updated to reflect the right version.
55
55
/// </remarks>
56
- private static readonly Version s_psV1Version = new Version ( 1 , 0 ) ;
57
- private static readonly Version s_psV2Version = new Version ( 2 , 0 ) ;
58
- private static readonly Version s_psV3Version = new Version ( 3 , 0 ) ;
59
- private static readonly Version s_psV4Version = new Version ( 4 , 0 ) ;
60
- private static readonly Version s_psV5Version = new Version ( 5 , 0 ) ;
61
- private static readonly Version s_psV51Version = new Version ( 5 , 1 , NTVerpVars . PRODUCTBUILD , NTVerpVars . PRODUCTBUILD_QFE ) ;
62
- private static readonly SemanticVersion s_psV6Version = new SemanticVersion ( 6 , 0 , 0 , preReleaseLabel : null , buildLabel : null ) ;
63
- private static readonly SemanticVersion s_psV61Version = new SemanticVersion ( 6 , 1 , 0 , preReleaseLabel : null , buildLabel : null ) ;
64
- private static readonly SemanticVersion s_psV62Version = new SemanticVersion ( 6 , 2 , 0 , preReleaseLabel : null , buildLabel : null ) ;
65
- private static readonly SemanticVersion s_psV7Version = new SemanticVersion ( 7 , 0 , 0 , preReleaseLabel : null , buildLabel : null ) ;
66
- private static readonly SemanticVersion s_psV71Version = new SemanticVersion ( 7 , 1 , 0 , preReleaseLabel : null , buildLabel : null ) ;
67
- private static readonly SemanticVersion s_psV72Version = new SemanticVersion ( 7 , 2 , 0 , preReleaseLabel : null , buildLabel : null ) ;
68
- private static readonly SemanticVersion s_psSemVersion ;
56
+ private static readonly Version s_psV1Version = new ( 1 , 0 ) ;
57
+ private static readonly Version s_psV2Version = new ( 2 , 0 ) ;
58
+ private static readonly Version s_psV3Version = new ( 3 , 0 ) ;
59
+ private static readonly Version s_psV4Version = new ( 4 , 0 ) ;
60
+ private static readonly Version s_psV5Version = new ( 5 , 0 ) ;
61
+ private static readonly Version s_psV51Version = new ( 5 , 1 , NTVerpVars . PRODUCTBUILD , NTVerpVars . PRODUCTBUILD_QFE ) ;
62
+ private static readonly Version s_psV6Version = new ( 6 , 0 , 0 ) ;
63
+ private static readonly Version s_psV61Version = new ( 6 , 1 , 0 ) ;
64
+ private static readonly Version s_psV62Version = new ( 6 , 2 , 0 ) ;
65
+ private static readonly Version s_psV7Version = new ( 7 , 0 , 0 ) ;
66
+ private static readonly Version s_psV71Version = new ( 7 , 1 , 0 ) ;
67
+ private static readonly Version s_psV72Version = new ( 7 , 2 , 0 ) ;
69
68
private static readonly Version s_psVersion ;
69
+ private static readonly SemanticVersion s_psSemVersion ;
70
70
71
71
/// <summary>
72
72
/// A constant to track current PowerShell Edition.
@@ -108,13 +108,13 @@ static PSVersionInfo()
108
108
s_psSemVersion = new SemanticVersion ( mainVersion ) ;
109
109
s_psVersion = ( Version ) s_psSemVersion ;
110
110
111
- s_psVersionTable [ PSVersionInfo . PSVersionName ] = s_psSemVersion ;
112
- s_psVersionTable [ PSVersionInfo . PSEditionName ] = PSEditionValue ;
111
+ s_psVersionTable [ PSVersionName ] = s_psSemVersion ;
112
+ s_psVersionTable [ PSEditionName ] = PSEditionValue ;
113
113
s_psVersionTable [ PSGitCommitIdName ] = rawGitCommitId ;
114
114
s_psVersionTable [ PSCompatibleVersionsName ] = new Version [ ] { s_psV1Version , s_psV2Version , s_psV3Version , s_psV4Version , s_psV5Version , s_psV51Version , s_psV6Version , s_psV61Version , s_psV62Version , s_psV7Version , s_psV71Version , s_psV72Version , s_psVersion } ;
115
- s_psVersionTable [ PSVersionInfo . SerializationVersionName ] = new Version ( InternalSerializer . DefaultVersion ) ;
116
- s_psVersionTable [ PSVersionInfo . PSRemotingProtocolVersionName ] = RemotingConstants . ProtocolVersion ;
117
- s_psVersionTable [ PSVersionInfo . WSManStackVersionName ] = GetWSManStackVersion ( ) ;
115
+ s_psVersionTable [ SerializationVersionName ] = new Version ( InternalSerializer . DefaultVersion ) ;
116
+ s_psVersionTable [ PSRemotingProtocolVersionName ] = RemotingConstants . ProtocolVersion ;
117
+ s_psVersionTable [ WSManStackVersionName ] = GetWSManStackVersion ( ) ;
118
118
s_psVersionTable [ PSPlatformName ] = Environment . OSVersion . Platform . ToString ( ) ;
119
119
s_psVersionTable [ PSOSName ] = Runtime . InteropServices . RuntimeInformation . OSDescription ;
120
120
}
@@ -330,12 +330,12 @@ internal static Version PSV51Version
330
330
get { return s_psV51Version ; }
331
331
}
332
332
333
- internal static SemanticVersion PSV6Version
333
+ internal static Version PSV6Version
334
334
{
335
335
get { return s_psV6Version ; }
336
336
}
337
337
338
- internal static SemanticVersion PSV7Version
338
+ internal static Version PSV7Version
339
339
{
340
340
get { return s_psV7Version ; }
341
341
}
0 commit comments