-
Notifications
You must be signed in to change notification settings - Fork 127
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
ILCompiler.Diagnostics build error in 8.0 Preview 5 #3483
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Failing build link: https://dev.azure.com/dnceng/internal/_build/results?buildId=2189115&view=results (internal only) |
I believe this is related to dotnet/runtime#84643 |
It looks like the changes from dotnet/runtime#84643 are incomplete because they did not update the implementation of https://github.com/dotnet/runtime/tree/main/src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator to reflect the new behavior. So the generated code is still using |
…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.
This looks similar to issues that this line fixed: https://github.com/dotnet/runtime/pull/86467/files#diff-de24791fc434cac361f77d2a59862f00eb432728609a7ec320bda264e1ddbbcdR112. I've made a PR to backport it (dotnet/runtime#86899), but haven't validated it yet. |
Thanks. I'm running a test build of the VMR with that change. |
Confirmed that the change in dotnet/runtime#86899 passes the VMR build. |
…and don't copy parameter attributes (#86899) * Use fully qualified type names for parameters and don't copy parameter 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. * Add test for change
Fixed by dotnet/runtime#86899 |
cc @jtschuster, @jkoritzinsky
The text was updated successfully, but these errors were encountered: