Skip to content

Suppress Obsolete warnings in the ComInterfaceGenerator - #88859

Merged
jkoritzinsky merged 1 commit into
dotnet:mainfrom
jkoritzinsky:obsolete-com-methods
Jul 13, 2023
Merged

Suppress Obsolete warnings in the ComInterfaceGenerator#88859
jkoritzinsky merged 1 commit into
dotnet:mainfrom
jkoritzinsky:obsolete-com-methods

Conversation

@jkoritzinsky

Copy link
Copy Markdown
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).
@jkoritzinskyjkoritzinsky added area-System.Runtime.InteropServices source-generator Indicates an issue with a source generator feature labels Jul 13, 2023
@jkoritzinskyjkoritzinsky added this to the 8.0.0 milestone Jul 13, 2023
@ghost

Copy link
Copy Markdown

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
Copy Markdown
MemberAuthor

All failures are known, merging.

@jkoritzinsky
jkoritzinsky merged commit c88dbd3 into dotnet:mainJul 13, 2023
@jkoritzinsky
jkoritzinsky deleted the obsolete-com-methods branch July 13, 2023 22:13
@ghostghost locked as resolved and limited conversation to collaborators Aug 13, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Runtime.InteropServicessource-generatorIndicates 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

@jkoritzinsky@AaronRobinsonMSFT@jtschuster