Closed riverar closed 7 months ago
Added a reference to custom metadata via ProjectionMetadataWinmd (see #356).
ProjectionMetadataWinmd
Metadata contains:
[DllImport("my.dll", EntryPoint = "#100", ExactSpelling = true, PreserveSig = false)] public static extern ReturnType function();
CsWin32 generates:
[DllImport("my.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal static extern winmdroot.ReturnType function();
CsWin32 to read/carry over the entry point as defined by metadata. This can differ from the function name (e.g. FileIconInit).
TBD
0.3.2-beta
net6.0-windows10.0.17763.0
LangVersion
9
Actual behavior
Added a reference to custom metadata via
ProjectionMetadataWinmd
(see #356).Metadata contains:
CsWin32 generates:
Expected behavior
CsWin32 to read/carry over the entry point as defined by metadata. This can differ from the function name (e.g. FileIconInit).
Repro steps
TBD
Context
0.3.2-beta
]net6.0-windows10.0.17763.0
]LangVersion
(if explicitly set by project): [e.g.9
]