You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Should produce warning because we should be able to parse the type name, resolve it// and find the method with RUC and thus issue a warning due to potential access to that method.Type.GetType("TypeWithRUCMethod").GetMethods();
This is also happening in places with annotated string values.
The note about IL2105 is out of date with #104060 - analyzer should produce the new IL2122 whenever a non-assembly-qualified type name is passed to a location with annotations, same as the other tools.
Activity
Trimming: Add tests for handling of annotated string type names repre…
Trimming: Add tests for handling of annotated string type names repre…
sbomer commentedon Aug 9, 2024
The note about IL2105 is out of date with #104060 - analyzer should produce the new IL2122 whenever a non-assembly-qualified type name is passed to a location with annotations, same as the other tools.
Implement type name resolution for ILLink analyzer (dotnet#106209)
sbomer commentedon Aug 13, 2024
Reopening since the fix was reverted: #106343
sbomer commentedon Aug 19, 2024
I think this needs Roslyn to update the version of System.Reflection.Metadata here: https://github.com/dotnet/roslyn/blame/d3ba1144d3d8dd41f1c0a5d84729ba46c5625a54/eng/Versions.props#L32C3-L32C3. I believe that will update the binding redirects so that we can use the 9.0 version of TypeNameParseOptions. See the relevant comments #106209 (comment) and #106321 (comment).
Test warning behavior for marking types by name (#106651)
Implement type name resolution for ILLink analyzer (dotnet#106209)
Test warning behavior for marking types by name (dotnet#106651)
sbomer commentedon Jun 10, 2025
Looks like Roslyn bumped System.Reflection.Metadata to 9.0.0 so we can go ahead with this.