Skip to content
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

Suppress Obsolete warnings in the ComInterfaceGenerator #88859

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

jkoritzinsky
Copy link
Member

In source-generated COM, we generate implementations of and calls to user-defined interface methods. If a user interface method is marked Obsolete, a warning was being issued. Follow how other source-generators handle this and ignore obsoletion warnings in source-generated code.

Fixes #88813

…erate overrides of an calls to user-defined interface methods).
@jkoritzinsky jkoritzinsky added area-System.Runtime.InteropServices source-generator Indicates an issue with a source generator feature labels Jul 13, 2023
@jkoritzinsky jkoritzinsky added this to the 8.0.0 milestone Jul 13, 2023
@ghost ghost assigned jkoritzinsky Jul 13, 2023
@ghost
Copy link

ghost commented Jul 13, 2023

Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.

Issue Details

In source-generated COM, we generate implementations of and calls to user-defined interface methods. If a user interface method is marked Obsolete, a warning was being issued. Follow how other source-generators handle this and ignore obsoletion warnings in source-generated code.

Fixes #88813

Author: jkoritzinsky
Assignees: -
Labels:

area-System.Runtime.InteropServices, source-generator

Milestone: 8.0.0

@jkoritzinsky
Copy link
Member Author

All failures are known, merging.

@jkoritzinsky jkoritzinsky merged commit c88dbd3 into dotnet:main Jul 13, 2023
95 of 109 checks passed
@jkoritzinsky jkoritzinsky deleted the obsolete-com-methods branch July 13, 2023 22:13
@ghost ghost locked as resolved and limited conversation to collaborators Aug 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Runtime.InteropServices source-generator Indicates an issue with a source generator feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ComInterfaceGenerator] COM interface methods decorated with ObsoleteAttribute generate CS0612 warnings
3 participants