Skip to content

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
@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