You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A managed [ComImport] interface type (this isn't even trim/AOT compatible, nor blittable, why is it here)
None of this stuff should be emitted when specifying blittable mode with no friendly overloads.
CsWin32 should literally only emit the blittable type, the vtable definition, and the IID field.
Actual behavior
Follow up from #1332 (comment).
I'd expect all COM types to only have the direct function pointer vtable slot methods, and the blittable vtable type.
Expected behavior
Some types also get a ton of unwanted stuff, like:
[UnmanagedCallersOnly]
methods doing CCW marshalling (??)PopulateVTable
method[ComImport]
interface type (this isn't even trim/AOT compatible, nor blittable, why is it here)None of this stuff should be emitted when specifying blittable mode with no friendly overloads.
CsWin32 should literally only emit the blittable type, the vtable definition, and the IID field.
Repro steps
NativeMethods.txt
content:NativeMethods.json
content (if present):Context
0.3.162
netstandard2.0
andnet9.0
(I can repro on both)LangVersion
(if explicitly set by project): n/aThe text was updated successfully, but these errors were encountered: