Skip to content

Fixed serialization of the HighDpiMode value#9629

Merged
drewnoakes merged 1 commit intomainfrom
dev/mipavlik/fix-highdpimode-serialization
Jan 15, 2025
Merged

Fixed serialization of the HighDpiMode value#9629
drewnoakes merged 1 commit intomainfrom
dev/mipavlik/fix-highdpimode-serialization

Conversation

@MichalPavlik
Copy link
Member

@MichalPavlik MichalPavlik commented Jan 14, 2025

Fixes ADO#2300157

Context

@drewnoakes fixed a typo in the name of the element used for HighDpiMode serialization, so the deserializer now picks up that value. However, there is a type mismatch. The value is serialized as a boolean, but the deserializer converts it to an Int32. The exception thrown by this failed conversion causes problems when editing VB WinForms project properties in Visual Studio.

Fix

The value is now serialized as Int32.

Microsoft Reviewers: Open in CodeFlow

@MichalPavlik MichalPavlik requested a review from a team as a code owner January 14, 2025 15:20
Copy link
Member

@drewnoakes drewnoakes 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!

@drewnoakes drewnoakes merged commit b36964b into main Jan 15, 2025
5 checks passed
@drewnoakes drewnoakes deleted the dev/mipavlik/fix-highdpimode-serialization branch January 15, 2025 08:24
@dotnet-policy-service dotnet-policy-service bot added this to the 17.12 milestone Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments