-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Closed as not planned
Labels
area-Tools-ILLink.NET linker development as well as trimming analyzers.NET linker development as well as trimming analyzersdisabled-testThe test is disabled in source code against the issueThe test is disabled in source code against the issueos-iosApple iOSApple iOS
Milestone
Description
Description
Rooting input assemblies is not enough when trimming with ILLinker forwarded types. It is required to root all forwarded assemblies as well.
Test case:
[Theory]
[InlineData("mscorlib")]
[InlineData("System.Threading.Overlapped")]
public static void ShimsHaveOnlyTypeForwards(string assemblyName)
{
Assembly assembly = Assembly.Load(assemblyName);
Assert.Empty(assembly.GetTypes());
Assert.Empty(assembly.GetManifestResourceNames());
Assert.NotEmpty(assembly.GetForwardedTypes());
}
Metadata
Metadata
Assignees
Labels
area-Tools-ILLink.NET linker development as well as trimming analyzers.NET linker development as well as trimming analyzersdisabled-testThe test is disabled in source code against the issueThe test is disabled in source code against the issueos-iosApple iOSApple iOS
Type
Projects
Status
No status