-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Conversation
Tagging subscribers to this area: @dotnet/interop-contrib Issue DetailsFixes #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?
|
src/libraries/System.Runtime.InteropServices/gen/Common/Resources/Strings.resx
Outdated
Show resolved
Hide resolved
src/libraries/System.Runtime.InteropServices/gen/Common/Resources/Strings.resx
Outdated
Show resolved
Hide resolved
src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/GeneratorDiagnostics.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Runtime.InteropServices/tests/ComInterfaceGenerator.Unit.Tests/Compiles.cs
Outdated
Show resolved
Hide resolved
...raries/System.Runtime.InteropServices/tests/ComInterfaceGenerator.Unit.Tests/CompileFails.cs
Show resolved
Hide resolved
I've also opened up #89603 as it's in a similar space and is also a likely pit of failure for conversions. |
…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>
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?