Sergio Pedri
Sergio Pedri
Yup, that's exactly right! For Win2D, this is used for several interop interfaces, which are only declared either in the published header for Win2D or in some headers from the...
This is breaking my Win2D sample for ComputeSharp with trimming enabled. I mean in general I'd assume it'd break any use of ComputeSharp with trimming enabled I guess (since they'd...
Update: I could work around this by adding these directives to my type's constructor: ```csharp [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(ICanvasImageInterop.Interface))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(ICanvasImageInterop.Interface.Vftbl))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(ICanvasFactoryNative.Interface))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(ICanvasFactoryNative.Interface.Vftbl))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(ICanvasEffectFactoryNative.Interface))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(ICanvasEffectFactoryNative.Interface.Vftbl))] ``` This did...
For future reference, these are also present in the marshalling stubs for event handlers, eg.: 
I've played around with this a bit (unsuccessfully), figured I'd leave some notes here for future reference 🙂 I've followed @jkoritzinsky's suggestion and tried to use `ICustomQueryInterface` on the managed...
@dotMorten to clarify, that attempt was more of a "let's see if this works to at least get unblocked in the meantime", but it was never meant to be a...
Ran another (failed) experiment, leaving it here for future reference. I followed @jkoritzinsky's advice of trying to replicate what CsWinRT is doing for some manual projections (eg. [IDisposable](https://github.com/microsoft/CsWinRT/blob/master/src/WinRT.Runtime/Projections/IDisposable.net5.cs)), and I...
Alright, I think I finally figured this out! 🎉 I was missing the `[WindowsRuntimeType]` attribute, which seems to be necessary for some reason. This is a bit weird given that...
> "`Activator.CreateInstance` would be more appropriate here." Right, I was thinking of `RuntimeHelpers.GetUninitializedObject` as that's the usual "poor man's static abstracts" approach on .NET Standard 2.0, so you can use...
> "I believe that general wisdom is that a custom global analysis tool is needed for WinRT support that has performance characteristics on par with .NET Native UWP." I see,...