-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
area-Tools-ILLink.NET linker development as well as trimming analyzers.NET linker development as well as trimming analyzers
Milestone
Description
using System.Diagnostics.CodeAnalysis;
RequireAll("NonExistent");
void RequireAll([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] string typeName)
{
Type.GetType(typeName);
}> dotnet publish /p:PublishTrimmed=true /p:SuppressTrimAnalysisWarnings=true
ILLink: warning IL2122: Program.<Main>$(String[]): Type 'NonExistent' is not assembly qualified. Type name strings used for dynamically accessing a type should be assembly qualified.
This is because:
| >= 2109 and <= 2121 => MessageSubCategory.TrimAnalysis, |
Thew newly added warning is not part of any of the recognized ranges.
Metadata
Metadata
Assignees
Labels
area-Tools-ILLink.NET linker development as well as trimming analyzers.NET linker development as well as trimming analyzers
Type
Projects
Status
No status