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

Workaround the UWP release mode issue with DataRow data #3240

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

Evangelink
Copy link
Member

@Evangelink Evangelink commented Jul 10, 2024

There seems to be a bug in UWP release mode when ".NET Native tool chain" is enabled causing the data to be wrapped in an object[]. While waiting for a proper fix, we are adding a logic to unwrap the data.

Manually tested.

Fixes #3071

// See https://github.com/microsoft/testfx/issues/3071
if (argumentsLengthOrZero == 1
&& argumentsLengthOrZero < methodParametersLengthOrZero
&& arguments![0] is object[] args)
Copy link
Member Author

Choose a reason for hiding this comment

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

We could be even more restrictive and only unwrap if args.Length == methodParametersLengthOrZero, WDYT?

@Evangelink Evangelink merged commit 53e41e9 into microsoft:main Jul 10, 2024
7 checks passed
@Evangelink Evangelink deleted the uwp-release branch July 10, 2024 14:44
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.

DataRows in UWP Release builds no longer works
1 participant