Skip to content

Provide more info on the failing CustomAttributeProvider #110230

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 1 commit into from
May 29, 2025

Conversation

jtschuster
Copy link
Member

In testing #110229 I had trouble finding which CustomAttributeProvider was failing, so this PR adds more info about which provider is causing the test to fail.

@jtschuster jtschuster added the area-Tools-ILLink .NET linker development as well as trimming analyzers label Nov 27, 2024
@jtschuster jtschuster added this to the 10.0.0 milestone Nov 27, 2024
@jtschuster jtschuster requested a review from a team November 27, 2024 17:02
@jtschuster jtschuster self-assigned this Nov 27, 2024
@dotnet-policy-service dotnet-policy-service bot added the linkable-framework Issues associated with delivering a linker friendly framework label Nov 27, 2024
Copy link
Contributor

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

Copy link
Member

@sbomer sbomer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

_ => src.ToString ()
};

yield return string.Join (Environment.NewLine, $"Custom attributes on `{name}` are not matching:", missing, extra);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: this still has backticks around the "name", so it's going to end up with messages like:

Custom attributes on `return type of `method`` are not matching:

@stephentoub stephentoub merged commit c875470 into dotnet:main May 29, 2025
73 of 76 checks passed
@github-project-automation github-project-automation bot moved this to Done in AppModel May 29, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jun 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Tools-ILLink .NET linker development as well as trimming analyzers linkable-framework Issues associated with delivering a linker friendly framework test-enhancement Improvements of test source code
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants