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

Fix crash on .NET 9 #201

Merged
merged 1 commit into from
Sep 11, 2024
Merged

Fix crash on .NET 9 #201

merged 1 commit into from
Sep 11, 2024

Conversation

daltzctr
Copy link
Contributor

@daltzctr daltzctr commented Sep 11, 2024

Fixes #200

This isn't a great fix in that this library is still not trimming and aot compatible, but this gets it to at least not-crash in client builds. This library was already incompatible for trimming and aot as x:Object previously just forced reflection bindings anyways in .NET 8.

@daltzctr
Copy link
Contributor Author

daltzctr commented Sep 11, 2024

I apologize for the formatting changes. My linter decided to reformat the file.

@symbiogenesis
Copy link
Collaborator

Thank you for the contribution. I will add AOT and trimming support as a roadmap item, although as you mention it may just force reflection for the time being.

However, I cannot see how this fixes any crash. Seems like it only has formatting changes.

@symbiogenesis
Copy link
Collaborator

Ok, I see now it is the x:DataType={x:Null} that is the fix.

@symbiogenesis
Copy link
Collaborator

Would be nice to get a force-push without the formatting changes, for clarity.

@daltzctr
Copy link
Contributor Author

Done.

@symbiogenesis symbiogenesis merged commit f6bba18 into akgulebubekir:main Sep 11, 2024
3 checks passed
@daltzctr daltzctr deleted the net9.0 branch September 11, 2024 22:36
@symbiogenesis
Copy link
Collaborator

symbiogenesis commented Sep 13, 2024

I made some attempted changes to improve things with respect to trimming and AOT. Let me know if they seem good to you.

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.

Crashes in .NET 9
2 participants