Closed kant2002 closed 3 years ago
What is the exact error that you see?
What is the commit that you are building locally? In particular, make sure that you have #1115 locally.
I'm running from 7fb90f46a243b27cfa7cecc98021f81288c4eb4c so probbaly that's it. Aarh. My apologies for trivial stuff. This commit likely broke that for me. Checking now.
On side note, what should I do to fix that? additional marshalling for VARIANT? or something else?
This commit likely broke that for me
This commit likely broke that for me prevented the bad marshalling :).
Yes, this looks like variant marshalling. Hopefully we will only need for marshalling strings (BSTR) and integral types. The IDispatch case looks hairy.
I have strange issue. Because I have a habit mixing my nuget cache I will try to cancel-out that possibility.
When I compile WinForms application using Nuget version, application complain about unsupported marshalling. When I compile same application using same file with ILC built locally it works.
Not working command line
"...cache\nuget\packages\runtime.win-x64.microsoft.dotnet.ilcompiler\6.0.0-preview.5.21268.1\tools\ilc" @"obj\x64\Debug\net6.0-windows\win-x64\native\WindowsFormsApp1.ilc.rsp"
then linkcontent of
obj\x64\Debug\net6.0-windows\win-x64\native\WindowsFormsApp1.ilc.rsp