Skip to content

Conversation

@Sergio0694
Copy link
Member

This PR includes these main changes:

  • Removes support for managed vtables on .NET 6+ (this was no longer used anyway)
  • Removes all NonPublicConstructor trimming annotations around ObjectReference<T>
    • These are no longer needed now that managed vtables are not supported anymore

@dongle-the-gadget
Copy link
Contributor

Removes support for managed vtables on .NET 6+ (this was no longer used anyway)

Would this break over existing projections?

@Sergio0694
Copy link
Member Author

Technically yes, but because you'll get the new Windows SDK projections along with the new CsWinRT runtime library, that will not be a problem. I talked about this with @manodasanW and he mentioned that "the only [scenario that could break] so far I can think of is if someone adds an explicit reference to CsWinRT to get the new WinRT.Runtime for some reason and are not generating a projection. If they are generating a projection, they already need to be consuming the new Windows SDK projection probably.", so it should be fine. And we really need this change to be able to drop all those unnecessary annotations 🙂

@Sergio0694 Sergio0694 marked this pull request as draft February 15, 2024 23:01
@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/no-generic-vtable branch from 50580d3 to dfc9824 Compare February 15, 2024 23:01
@Sergio0694 Sergio0694 changed the base branch from staging/AOT to user/sergiopedri/rcw-factory-attribute February 15, 2024 23:01
@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/rcw-factory-attribute branch from f6d7459 to 7939f2a Compare February 19, 2024 05:18
Base automatically changed from user/sergiopedri/rcw-factory-attribute to staging/AOT February 21, 2024 19:35
@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/no-generic-vtable branch from dfc9824 to e8837bf Compare February 21, 2024 19:37
@Sergio0694 Sergio0694 marked this pull request as ready for review February 21, 2024 19:40
@Sergio0694 Sergio0694 merged commit c05edbb into staging/AOT Feb 22, 2024
@Sergio0694 Sergio0694 deleted the user/sergiopedri/no-generic-vtable branch February 22, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants