Repository navigation
[wasm][tests] IL2105 trimming errors in test projects #51602
Copy link
Copy link
Closed
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-Build-monodisabled-testThe test is disabled in source code against the issueThe test is disabled in source code against the issuetrimming-for-aot`EnableAggressiveTrimming=true` used for running tests with AOT`EnableAggressiveTrimming=true` used for running tests with AOT
Milestone
Description
Building these tests with /p:EnableAggressiveTrimming=true fails with:
System.ObjectModel.Tests:
/_/src/libraries/System.ObjectModel/tests/System/ComponentModel/TypeConverterAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.TypeConverterAttributeTests.<Equals_TestData>d__6.MoveNext(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ObjectModel/tests/System.ObjectModel.Tests.csproj]
/_/src/libraries/System.ObjectModel/tests/System/ComponentModel/TypeConverterAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.TypeConverterAttributeTests.<Equals_TestData>d__6.MoveNext(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ObjectModel/tests/System.ObjectModel.Tests.csproj]
/_/src/libraries/System.ObjectModel/tests/System/ComponentModel/TypeConverterAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.TypeConverterAttributeTests.<Equals_TestData>d__6.MoveNext(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ObjectModel/tests/System.ObjectModel.Tests.csproj]
/_/src/libraries/System.ObjectModel/tests/System/ComponentModel/TypeConverterAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.TypeConverterAttributeTests.<Equals_TestData>d__6.MoveNext(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ObjectModel/tests/System.ObjectModel.Tests.csproj]
/_/src/libraries/System.ObjectModel/tests/System/ComponentModel/TypeConverterAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.TypeConverterAttributeTests.<Equals_TestData>d__6.MoveNext(): Type 'otherTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ObjectModel/tests/System.ObjectModel.Tests.csproj]
/_/src/libraries/System.ObjectModel/tests/System/ComponentModel/TypeConverterAttributeTests.cs(74,13): error IL2105: System.ComponentModel.Tests.TypeConverterAttributeTests.GetHashCode_Invoke_ReturnsExpected(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ObjectModel/tests/System.ObjectModel.Tests.csproj]
System.ComponentModel.Primitives.csproj
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/EditorAttributeTests.cs(69,102): error IL2105: System.ComponentModel.Tests.EditorAttributeTests.<>c.<Ctor_NullBaseType_ThrowsArgumentNullException>b__6_0(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/DesignerAttributeTests.cs(85,110): error IL2105: System.ComponentModel.Tests.DesignerAttributeTests.<>c.<Ctor_NullDesignerBaseType_ThrowsArgumentNullException>b__7_0(): Type 'designerTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/DesignerAttributeTests.cs(71,90): error IL2105: System.ComponentModel.Tests.DesignerAttributeTests.<>c.<Ctor_NullDesignerTypeName_ThrowsArgumentNullException>b__5_1(): Type 'designerBaseTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/EditorAttributeTests.cs(56,102): error IL2105: System.ComponentModel.Tests.EditorAttributeTests.<>c.<Ctor_NullTypeName_ThrowsArgumentNullException>b__4_0(): Type 'baseTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/DesignerAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.DesignerAttributeTests.<Equals_TestData>d__10.MoveNext(): Type 'designertypename' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/DesignerAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.DesignerAttributeTests.<Equals_TestData>d__10.MoveNext(): Type 'designerTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/DesignerAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.DesignerAttributeTests.<Equals_TestData>d__10.MoveNext(): Type 'designertypename' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/DesignerAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.DesignerAttributeTests.<Equals_TestData>d__10.MoveNext(): Type 'designerTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/DesignerAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.DesignerAttributeTests.<Equals_TestData>d__10.MoveNext(): Type 'designerTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/DesignerAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.DesignerAttributeTests.<Equals_TestData>d__10.MoveNext(): Type 'designerTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/DesignerAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.DesignerAttributeTests.<Equals_TestData>d__10.MoveNext(): Type 'designertBaseTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/DesignerAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.DesignerAttributeTests.<Equals_TestData>d__10.MoveNext(): Type 'designerBaseTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/DesignerAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.DesignerAttributeTests.<Equals_TestData>d__10.MoveNext(): Type 'designerTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/DesignerAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.DesignerAttributeTests.<Equals_TestData>d__10.MoveNext(): Type 'designerTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/DesignerAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.DesignerAttributeTests.<Equals_TestData>d__10.MoveNext(): Type 'designerbasetypename' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/DesignerAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.DesignerAttributeTests.<Equals_TestData>d__10.MoveNext(): Type 'designerBaseTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/DesignerAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.DesignerAttributeTests.<Equals_TestData>d__10.MoveNext(): Type 'designerBaseTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/DesignerAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.DesignerAttributeTests.<Equals_TestData>d__10.MoveNext(): Type 'designerTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/DesignerAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.DesignerAttributeTests.<Equals_TestData>d__10.MoveNext(): Type 'designerTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/DesignerAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.DesignerAttributeTests.<Equals_TestData>d__10.MoveNext(): Type 'designerTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/EditorAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.EditorAttributeTests.<Equals_TestData>d__9.MoveNext(): Type 'basetypename' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/EditorAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.EditorAttributeTests.<Equals_TestData>d__9.MoveNext(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/EditorAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.EditorAttributeTests.<Equals_TestData>d__9.MoveNext(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/EditorAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.EditorAttributeTests.<Equals_TestData>d__9.MoveNext(): Type 'typename' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/EditorAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.EditorAttributeTests.<Equals_TestData>d__9.MoveNext(): Type 'baseTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/EditorAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.EditorAttributeTests.<Equals_TestData>d__9.MoveNext(): Type 'baseTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/EditorAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.EditorAttributeTests.<Equals_TestData>d__9.MoveNext(): Type 'baseTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/EditorAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.EditorAttributeTests.<Equals_TestData>d__9.MoveNext(): Type 'typename' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/EditorAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.EditorAttributeTests.<Equals_TestData>d__9.MoveNext(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/EditorAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.EditorAttributeTests.<Equals_TestData>d__9.MoveNext(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/EditorAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.EditorAttributeTests.<Equals_TestData>d__9.MoveNext(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/EditorAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.EditorAttributeTests.<Equals_TestData>d__9.MoveNext(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/EditorAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.EditorAttributeTests.<Equals_TestData>d__9.MoveNext(): Type 'baseTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/EditorAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.EditorAttributeTests.<Equals_TestData>d__9.MoveNext(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/EditorAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.EditorAttributeTests.<Equals_TestData>d__9.MoveNext(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/EditorAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.EditorAttributeTests.<Equals_TestData>d__9.MoveNext(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/DesignerAttributeTests.cs(101,13): error IL2105: System.ComponentModel.Tests.DesignerAttributeTests.TypeId_Get_ReturnsExcepted(String,Object): Type 'SerializerType' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
/_/src/libraries/System.ComponentModel.Primitives/tests/System/ComponentModel/EditorAttributeTests.cs(85,13): error IL2105: System.ComponentModel.Tests.EditorAttributeTests.TypeId_Get_ReturnsExcepted(String,Object): Type 'Type' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.Primitives/tests/System.ComponentModel.Primitives.Tests.csproj]
System.ComponentModel.TypeConverter.Tests
/_/src/libraries/System.ComponentModel.TypeConverter/tests/AttributeProviderAttributeTests.cs(23,82): error IL2105: System.ComponentModel.Tests.AttributeProviderAttributeTests.<>c.<Ctor_NullPropertyName_ThrowsArgumentNullException>b__1_0(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.TypeConverter/tests
/_/src/libraries/System.ComponentModel.TypeConverter/tests/ProvidePropertyAttributeTests.cs(16707566): error IL2105: System.ComponentModel.ProvidePropertyAttributeTests.<Equals_TestData>d__3.MoveNext(): Type 'receiverTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
/_/src/libraries/System.ComponentModel.TypeConverter/tests/ProvidePropertyAttributeTests.cs(16707566): error IL2105: System.ComponentModel.ProvidePropertyAttributeTests.<Equals_TestData>d__3.MoveNext(): Type 'receiverTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
/_/src/libraries/System.ComponentModel.TypeConverter/tests/ProvidePropertyAttributeTests.cs(16707566): error IL2105: System.ComponentModel.ProvidePropertyAttributeTests.<Equals_TestData>d__3.MoveNext(): Type 'receiverTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
/_/src/libraries/System.ComponentModel.TypeConverter/tests/ProvidePropertyAttributeTests.cs(16707566): error IL2105: System.ComponentModel.ProvidePropertyAttributeTests.<Equals_TestData>d__3.MoveNext(): Type 'receiverTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
/_/src/libraries/System.ComponentModel.TypeConverter/tests/ProvidePropertyAttributeTests.cs(16707566): error IL2105: System.ComponentModel.ProvidePropertyAttributeTests.<Equals_TestData>d__3.MoveNext(): Type 'receivertypename' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
/_/src/libraries/System.ComponentModel.TypeConverter/tests/ProvidePropertyAttributeTests.cs(16707566): error IL2105: System.ComponentModel.ProvidePropertyAttributeTests.<Equals_TestData>d__3.MoveNext(): Type 'receiverTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
/_/src/libraries/System.ComponentModel.TypeConverter/tests/InstallerTypeAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.InstallerTypeAttributeTests.<Equals_TestData>d__5.MoveNext(): Type 'typename' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
/_/src/libraries/System.ComponentModel.TypeConverter/tests/InstallerTypeAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.InstallerTypeAttributeTests.<Equals_TestData>d__5.MoveNext(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
/_/src/libraries/System.ComponentModel.TypeConverter/tests/InstallerTypeAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.InstallerTypeAttributeTests.<Equals_TestData>d__5.MoveNext(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
/_/src/libraries/System.ComponentModel.TypeConverter/tests/InstallerTypeAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.InstallerTypeAttributeTests.<Equals_TestData>d__5.MoveNext(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
/_/src/libraries/System.ComponentModel.TypeConverter/tests/LicenseProviderAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.LicenseProviderAttributeTests.<Equals_TestData>d__6.MoveNext(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
/_/src/libraries/System.ComponentModel.TypeConverter/tests/ToolboxItemAttributeTests.cs(16707566): error IL2105: System.ComponentModel.ToolboxItemAttributeTests.<Equals_TestData>d__7.MoveNext(): Type 'toolboxItemTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
/_/src/libraries/System.ComponentModel.TypeConverter/tests/ToolboxItemAttributeTests.cs(16707566): error IL2105: System.ComponentModel.ToolboxItemAttributeTests.<Equals_TestData>d__7.MoveNext(): Type 'toolboxitemtypename' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
/_/src/libraries/System.ComponentModel.TypeConverter/tests/ToolboxItemAttributeTests.cs(16707566): error IL2105: System.ComponentModel.ToolboxItemAttributeTests.<Equals_TestData>d__7.MoveNext(): Type 'toolboxItemTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
/_/src/libraries/System.ComponentModel.TypeConverter/tests/ToolboxItemAttributeTests.cs(16707566): error IL2105: System.ComponentModel.ToolboxItemAttributeTests.<Equals_TestData>d__7.MoveNext(): Type 'toolboxItemTypeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
/_/src/libraries/System.ComponentModel.TypeConverter/tests/LicenseProviderAttributeTests.cs(16707566): error IL2105: System.ComponentModel.Tests.LicenseProviderAttributeTests.<TypeId_TestData>d__4.MoveNext(): Type 'typeName' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified. [/__w/1/s/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-Build-monodisabled-testThe test is disabled in source code against the issueThe test is disabled in source code against the issuetrimming-for-aot`EnableAggressiveTrimming=true` used for running tests with AOT`EnableAggressiveTrimming=true` used for running tests with AOT
Activity
[-][wasm][tests][eat] Trimming errors in building `System.ComponentModel.Primitives.Tests`[/-][+][wasm][tests] `IL2105` trimming errors in test projects[/+]radical commentedon Apr 22, 2021
cc @eerhardt
radical commentedon Aug 4, 2021
Getting similar errors for
System.ComponentModel.Annotations.Tests- buildeerhardt commentedon Aug 4, 2021
I don't understand why we are failing the build with linker errors coming from tests. Can anyone explain? I thought we suppressed all trim warnings in tests.
If IL2105 isn't being suppressed by default, we should disable it explicitly in our tests.
radical commentedon Aug 4, 2021
Is that done just for the linker tests?
radical commentedon Aug 4, 2021
Should I disable all trim warnings (
$(SuppressTrimAnalysisWarnings)=true) for tests, or justIL2105($(LinkerNoWarn)=IL2105)?eerhardt commentedon Aug 4, 2021
runtime/eng/testing/tests.mobile.targets
Lines 16 to 19 in c16cb0e
However, I think the issue here is that
IL2105isn't disabled when you setSuppressTrimAnalysisWarnings=true.https://github.com/dotnet/sdk/blob/c3850ddbd2c92702cf62868d0614d35a1278f7bb/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.ILLink.targets#L58-L90
So we should also add
IL2105toNoWarn.@sbomer - is there a reason 2105 isn't suppressed?
radical commentedon Aug 4, 2021
ah, ok! that doesn't apply for
IL2103(#51708) though, I guess, because it's included in that list above. But we have had those tests disabled since April, so maybe they won't fail if I enable them now.radical commentedon Aug 4, 2021
And should this issue be closed?
eerhardt commentedon Aug 4, 2021
Not if the tests are still failing. We should do something to make them pass.
radical commentedon Aug 4, 2021
I'm trying that now in #52004 . I meant, that this issue is for IL2105 specifically, and if we are disabling it as "not relevant for tests", or "won't fix for tests", then we can close this issue.
I'll update when I have results from the build.
eerhardt commentedon Aug 4, 2021
I wouldn't disable the test. I would just suppress the warning.
sbomer commentedon Aug 4, 2021
Yes - it's not categorized as a "Trim analysis" warning in the linker because we want to encourage the use of fully-qualified type names for parameters that have
DAMTrequirements (see discussion in https://github.com/mono/linker/issues/1895). But if it's too noisy we can definitely reconsider.These tests look like they aren't testing a user scenario (they seem to use strings that don't map to any types) so I think it would be fine just to suppress IL2105 for the tests.
eerhardt commentedon Aug 4, 2021
Sounds good to me. Thanks for verifying.