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
I've updated to the latest version (0.3.162) and my project is now failing to compile. Upon inspecting the generated code, it seems CsWin32 is generating a bunch of invalid code in the QueryInterface methods it's emitting. It's also not clear why these methods are generated in the first place, given I've disabled the friendly overloads. I expect (and want) literally only the vtable methods to be generated, nothing else.
You can see this generated call has invalid arguments. Also, this whole method shouldn't be generated at all, really.
Expected behavior
The code should be valid and compile, and no additional "helper methods" should be generated.
I couldn't readily identify any methods besides the faulty QueryInterface method itself that should be omitted when friendly overloads are turned off. Please open a separate bug listing any other methods you feel are being generated inappropriately.
Actual behavior
I've updated to the latest version (
0.3.162
) and my project is now failing to compile. Upon inspecting the generated code, it seems CsWin32 is generating a bunch of invalid code in theQueryInterface
methods it's emitting. It's also not clear why these methods are generated in the first place, given I've disabled the friendly overloads. I expect (and want) literally only the vtable methods to be generated, nothing else.You can see this generated call has invalid arguments. Also, this whole method shouldn't be generated at all, really.
Expected behavior
The code should be valid and compile, and no additional "helper methods" should be generated.
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: