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

Disable the "casts between generated and built-in COM interop" analyzer when the "enable interop between generated COM interop and built-in COM interop" feature is enabled. #89125

Merged

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