Skip to content

Add Info warning for int return values #89601

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

Merged
merged 13 commits into from
Aug 1, 2023

Conversation

jtschuster
Copy link
Member

@jtschuster jtschuster commented Jul 27, 2023

Fixes #89315 and #89603

Not the happiest with the wording of the error, so any suggestions would be welcome.

Also, I don't love the fact that it needs a MarshalAs attribute to be silenced. Maybe we could use a MSBuild property to silence them? Or should we let the user put the ID in their editorconfig?

@ghost
Copy link

ghost commented Jul 27, 2023

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

Issue Details

Fixes #89315

Not the happiest with the wording of the error, so any suggestions would be welcome.

Also, I don't love the fact that it needs a MarshalAs attribute to be silenced. Maybe we could use a MSBuild property to silence them? Or should we let the user put the ID in their editorconfig?

Author: jtschuster
Assignees: -
Labels:

area-System.Runtime.InteropServices

Milestone: -

@jkoritzinsky
Copy link
Member

I've also opened up #89603 as it's in a similar space and is also a likely pit of failure for conversions.

jtschuster and others added 5 commits July 27, 2023 16:06
…ces/Strings.resx

Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>
…ces/Strings.resx

Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>
…eGenerator.Unit.Tests/CompileFails.cs

Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>
@jtschuster jtschuster requested a review from jeffhandley as a code owner July 27, 2023 23:13
@jtschuster jtschuster merged commit 531ad95 into dotnet:main Aug 1, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Sep 1, 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.

ComInterfaceGenerator should provide an info message when the managed signature returns an int, enum, or type alias for int
3 participants