-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[release/8.0-preview5] Use fully qualified type names for parameters and don't copy parameter attributes #86899
Conversation
…r attributes The issue dotnet/source-build#3483 looks similar to the issues I found before fixing in #86731. The relevant changes were in ComMethodContext.cs. If it's the same issue I was hitting, the attribute syntax was being copied over without adding 'using' statements or changing the attribute name to be fully qualified. I haven't validated yet, but this should fix it by just not copying the attributes for the parameters since they're not strictly necessary.
Tagging subscribers to this area: @dotnet/interop-contrib Issue DetailsThe issue dotnet/source-build#3483 looks similar to the issues I found before fixing in #86731. The relevant changes were in ComMethodContext.cs. If it's the same issue I was hitting, the attribute syntax was being copied over without adding 'using' statements or changing the attribute name to be fully qualified. I haven't validated yet, but this should fix it by just not copying the attributes for the parameters since they're not strictly necessary.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a test to make sure we've fixed the issue?
@jtschuster @jkoritzinsky @mthalman I see the test was added. There were test failures. Let me know if they are not related and if this is ready to merge. |
The failures look like unrelated internet issues. I'll let @jkoritzinsky confirm, but it should be ready to merge. |
yeah wasm failure doesn't look related |
The CI got reset with the branch merge. But since the CI passed before, I'll merge. |
/backport to main |
Started backporting to main: https://github.com/dotnet/runtime/actions/runs/5126550773 |
Fixes dotnet/source-build#3483 by not copying the attributes for the parameters on generated base implementation methods since they're not strictly necessary.