Commit 5afff13
[release/9.0-staging] Fix
* 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 <3840695+am11@users.noreply.github.com>
* 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 <jkotas@microsoft.com>
* Update src/libraries/System.Private.CoreLib/src/System/OperatingSystem.cs
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
* 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 <3840695+am11@users.noreply.github.com>
* Update src/libraries/System.Private.CoreLib/src/System/OperatingSystem.cs
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
* Normalize build component to 0 if undefined
* Add comments
* Revert normalizing build component to 0
---------
Co-authored-by: Milos Kotlar <kotlarmilos@gmail.com>
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
Co-authored-by: Jan Kotas <jkotas@microsoft.com>IsOSVersionAtLeast when build or revision are not provided (#109332)1 parent 56501c9 commit 5afff13
2 files changed
Lines changed: 34 additions & 8 deletions
File tree
- src/libraries
- System.Private.CoreLib/src/System
- System.Runtime/tests/System.Runtime.Extensions.Tests/System
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
339 | 342 | | |
340 | | - | |
| 343 | + | |
341 | 344 | | |
342 | 345 | | |
343 | | - | |
344 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
345 | 351 | | |
346 | 352 | | |
347 | 353 | | |
Lines changed: 24 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
239 | 240 | | |
240 | 241 | | |
241 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
242 | 249 | | |
243 | | - | |
| 250 | + | |
244 | 251 | | |
245 | 252 | | |
246 | 253 | | |
| |||
256 | 263 | | |
257 | 264 | | |
258 | 265 | | |
259 | | - | |
260 | | - | |
| 266 | + | |
| 267 | + | |
261 | 268 | | |
262 | 269 | | |
263 | 270 | | |
| |||
273 | 280 | | |
274 | 281 | | |
275 | 282 | | |
276 | | - | |
| 283 | + | |
277 | 284 | | |
278 | 285 | | |
279 | 286 | | |
280 | 287 | | |
281 | 288 | | |
282 | 289 | | |
283 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
284 | 304 | | |
285 | 305 | | |
0 commit comments