Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Win32.PlatformConstants uses buildNumber instead of version #16453

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

christophe-calmejane
Copy link
Contributor

What does the pull request do?

Changes the definition of Avalonia.Win32.PlatformConstants.Windows10_1607 to correctly create the Version class using Windows 10-1607 buildNumber (and not the marketing version).

What is the current behavior?

This test

Win32Platform.WindowsVersion < PlatformConstants.Windows10_1607

is always false for any windows 10 version since it's comparing windows internal build number (which starts at 10240 for the first Windows 10 version) to the marketing Version (1607).

What is the updated/expected behavior with this PR?

With this change, the previous test will correctly return false when ran on Windows 10 version 1507 (Codename Threshold, BuildNumber 10240) or on Windows 10 version 1511 (Codename Threshold2, BuildNumber 10586).

Fixed issues

Fixes #16444

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0050432-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@cla-avalonia
Copy link
Collaborator

cla-avalonia commented Jul 25, 2024

  • All contributors have signed the CLA.

@christophe-calmejane
Copy link
Contributor Author

@cla-avalonia agree

@maxkatz6 maxkatz6 added bug os-windows backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Jul 25, 2024
Copy link
Member

@maxkatz6 maxkatz6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@maxkatz6 maxkatz6 added this pull request to the merge queue Jul 25, 2024
Merged via the queue into AvaloniaUI:master with commit 08e762e Jul 25, 2024
11 checks passed
@maxkatz6 maxkatz6 added backported-11.1.x and removed backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EntryPointNotFoundException when Window.ShowDialog() called on Windows 1511
4 participants