-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[VisualBasic] Fix TypeName for COM objects #40584
Conversation
Not sure why the tests are breaking on coreclr scenario. On mono is because |
Tagging subscribers to this area: @cston |
@AaronRobinsonMSFT it appears we do not have any tests in the repo for Type.GetTypeFromProgID, does that seem right? I see VB has Interaction.CreateObject that uses it, but tests for that just pass error cases. @ehasis you can apply @steveisok weren't we going to add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ehasis!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ILLinkTrim.xml file looks good to me.
src/libraries/Microsoft.VisualBasic.Core/tests/CompilerServices/VersionedTests.cs
Show resolved
Hide resolved
Thanks for the contribution @ehasis |
Fix
Microsoft.VisualBasic.Information.TypeName
to return correct name for COM objectsUnsafeNativeMethods
(i.e. IDispatch, ITypeInfo, etc.)LegacyTypeNameOfCOMObject
to match reference sourceTypeNameOfCOMObject
and call it fromVersioned.TypeName
Caveats
LLinkTrim.xml
to prevent the Linker from removing "unused" methods and breaks the vtable layoutsResolves #35937