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

Allow authoring scenarios to make use of abstract classes in their implementation #1512

Merged
merged 4 commits into from
Feb 22, 2024

Conversation

manodasanW
Copy link
Member

Abstract classes are not a concept in WinRT but authors of WinRT components may want to implement their components where they make of use abstract classes as their base class and might be public. Given we don't need to worry about projecting them, this PR allows for this scenario by ignoring the base type if it is abstract.

Also fixing an issue where CsWinRTWindowsMetadata was never set in authoring scenarios because it was set as part of a target and thereby the source generator was getting an empty value.

…an implementation detail that is not projected given abstract classes aren't projected in WinRT
…in a target so that the WinRT component source generator can also pick it up
Copy link
Member

@Sergio0694 Sergio0694 left a comment

Choose a reason for hiding this comment

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

This is awesome, thank you!! 🙌

@manodasanW manodasanW merged commit 0b6f872 into staging/AOT Feb 22, 2024
9 checks passed
@manodasanW manodasanW deleted the manodasanw/allowabstractclass branch February 22, 2024 09:13
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