Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Using Dynamic with COM object doesn't work #32630
I'm trying to use
This works fine on .NET Framework, but fails on .NET Core when trying to access properties and methods on the COM object.
I'm seeing this behavior both with 2.1 and 3.0-preview
@dotMorten perhaps we can find a way to enable this without the use of dynamic. Check out the Excel sample: https://github.com/dotnet/samples/tree/master/core/extensions/ExcelDemo
@jeffschwMSFT Yeah I tried that and failed (it doesn't generate any APIs). After your post I tried again, and somehow it now works. That's awesome.
I would however have preferred a way where System.Device.dll didn't have to be completely rewritten, but a straight port "just works"