Skip to content

[release/6.0.2xx] Remove special logic for TypeConverterAttribute (#2659)#2695

Merged
agocke merged 1 commit intodotnet:release/6.0.2xxfrom
agocke:backport-2659
Mar 23, 2022
Merged

[release/6.0.2xx] Remove special logic for TypeConverterAttribute (#2659)#2695
agocke merged 1 commit intodotnet:release/6.0.2xxfrom
agocke:backport-2659

Conversation

@agocke
Copy link
Member

@agocke agocke commented Mar 18, 2022

(cherry picked from commit b10e1bc)

Summary

The linker has had a special case for the TypeConverterAttribute for a while. In .NET 6, the logic was properly annotated, and the special casing can actually produce spurious warnings. This change removes the special casing.

Impact

Consumers like MAUI use TypeConverterAttribute and are seeing lots of spurious warnings, which is harming their ability to make things trimmable for .NET 6.

Risk

Low. Removes special casing.

@agocke agocke requested a review from jtschuster March 18, 2022 21:20
@agocke agocke requested a review from marek-safar as a code owner March 18, 2022 21:20
Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

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

Approved. We should take for consideration in 6.0.2xx.

@agocke agocke changed the title Remove special logic for TypeConverterAttribute (#2659) [release/6.0.2xx] Remove special logic for TypeConverterAttribute (#2659) Mar 21, 2022
@agocke agocke merged commit eab62f9 into dotnet:release/6.0.2xx Mar 23, 2022
@agocke agocke deleted the backport-2659 branch March 23, 2022 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants