Skip to content

Conversation

@jkoritzinsky
Copy link
Member

Use the property defined in dotnet/sdk#34072 to disable the portion of this analyzer that will have false-positives when the opt-in feature is enabled.

…er when the "enable interop between generated COM interop and built-in COM interop" feature is enabled.
@ghost
Copy link

ghost commented Jul 18, 2023

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

Issue Details

Use the property defined in dotnet/sdk#34072 to disable the portion of this analyzer that will have false-positives when the opt-in feature is enabled.

Author: jkoritzinsky
Assignees: jkoritzinsky
Labels:

area-System.Runtime.InteropServices

Milestone: -

Copy link
Member

@jtschuster jtschuster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also check if PublishAOT is true, and still warn if it is?

@jkoritzinsky
Copy link
Member Author

I believe we'll already warn when built-in COM is enabled, so I don't think we need to add an additional warning here (as this feature depends on built-in COM being enabled in the first place).

@jkoritzinsky jkoritzinsky merged commit c430570 into dotnet:main Jul 19, 2023
@jkoritzinsky jkoritzinsky deleted the rcw-interop-analyzer-integration branch July 19, 2023 00:08
@ghost ghost locked as resolved and limited conversation to collaborators Aug 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants