You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[release/9.0-staging] Fix IsOSVersionAtLeast when build or revision are not provided (#109332)
* Default build and revision numbers to 0 if they are -1 on MacCatalyst
* Update src/libraries/System.Private.CoreLib/src/System/Environment.OSVersion.MacCatalyst.cs
Co-authored-by: Adeel Mujahid <[email protected]>
* Add three-parameter and two-parameter overloads for IsOSPlatformVersionAtLeast
* Update IsOSVersionAtLeast to handle not provided values
* Check only build and revision
* Update src/libraries/System.Private.CoreLib/src/System/OperatingSystem.cs
Co-authored-by: Jan Kotas <[email protected]>
* Update src/libraries/System.Private.CoreLib/src/System/OperatingSystem.cs
Co-authored-by: Jan Kotas <[email protected]>
* New line
* Update tests to pass when build or revision are -1
* Add isCurrentOS to the Assert.Equal
* Unspecified build/revision components are to be treated as zeros
* Unspecified build component is to be treated as zero
* Unspecified build or revision component is to be treated as zero
* Update src/libraries/System.Private.CoreLib/src/System/OperatingSystem.cs
Co-authored-by: Adeel Mujahid <[email protected]>
* Update src/libraries/System.Private.CoreLib/src/System/OperatingSystem.cs
Co-authored-by: Adeel Mujahid <[email protected]>
* Normalize build component to 0 if undefined
* Add comments
* Revert normalizing build component to 0
---------
Co-authored-by: Milos Kotlar <[email protected]>
Co-authored-by: Adeel Mujahid <[email protected]>
Co-authored-by: Jan Kotas <[email protected]>
0 commit comments