Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building System.Runtime.InteropServices.JavaScript.Tests.csproj (all TFMs) fails locally #106476

Closed
ViktorHofer opened this issue Aug 15, 2024 · 7 comments · Fixed by #106623
Closed
Assignees
Labels
arch-wasm WebAssembly architecture area-System.Runtime.InteropServices.JavaScript in-pr There is an active PR which will close this issue when it is merged
Milestone

Comments

@ViktorHofer
Copy link
Member

build.cmd libs && dotnet.cmd build C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj

C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSExportTest.cs(49,13): error IL2091: 'T' generic argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods', 'DynamicallyAccessedMemberTypes.Public
Fields', 'DynamicallyAccessedMemberTypes.NonPublicFields', 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.NonPublicProperties' in '
Xunit.Assert.Equal<T>(T, T)'. The generic parameter 'T' of 'System.Runtime.InteropServices.JavaScript.Tests.JSExportAsyncTest.JsExportTestAsync<T>(T, Func<T, String, T
ask<T>>, String, String, String)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target loca
tion it is assigned to. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runti
me.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(142,13): error IL2026: Using member 'System.Exception.TargetSite.get' which has 'RequiresUnreferencedCodeAttribute' can break functionality when t
rimming application code. Metadata for the method might be incomplete or removed. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System
.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(142,13): error IL2026: Using member 'System.Exception.TargetSite.get' which has 'RequiresUnreferencedCodeAttribute' can break functionality when t
rimming application code. Metadata for the method might be incomplete or removed. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System
.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSExportTest.cs(431,13): error IL2091: 'T' generic argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods', 'DynamicallyAccessedMemberTypes.Publi
cFields', 'DynamicallyAccessedMemberTypes.NonPublicFields', 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.NonPublicProperties' in
'Xunit.Assert.Equal<T>(T, T)'. The generic parameter 'T' of 'System.Runtime.InteropServices.JavaScript.Tests.JSExportTest.JsExportTest<T>(T, Func<T, String, T>, String
, String, String)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assi
gned to. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServi
ces.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.TypeInitializer.get' with parameters or return value with `DynamicallyAccessedMembersAttribute` is acc
essed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\
tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.FindInterfaces(TypeFilter, Object)' with parameters or return value with `DynamicallyAccessedMembersAt
tribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServi
ces.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.FindMembers(MemberTypes, BindingFlags, MemberFilter, Object)' with parameters or return value with `Dy
namicallyAccessedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\S
ystem.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramew
ork=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetConstructor(BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])' with parameters
 or return value with `DynamicallyAccessedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git
\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.T
ests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetConstructor(BindingFlags, Binder, Type[], ParameterModifier[])' with parameters or return value wit
h `DynamicallyAccessedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\librar
ies\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetF
ramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetConstructor(BindingFlags, Type[])' with parameters or return value with `DynamicallyAccessedMembers
Attribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropSer
vices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetConstructor(Type[])' with parameters or return value with `DynamicallyAccessedMembersAttribute` is
accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScri
pt\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetConstructors()' with parameters or return value with `DynamicallyAccessedMembersAttribute` is acces
sed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\te
sts\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetConstructors(BindingFlags)' with parameters or return value with `DynamicallyAccessedMembersAttribu
te` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.J
avaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetDefaultMembers()' with parameters or return value with `DynamicallyAccessedMembersAttribute` is acc
essed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\
tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetEvent(String)' with parameters or return value with `DynamicallyAccessedMembersAttribute` is access
ed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tes
ts\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetEvent(String, BindingFlags)' with parameters or return value with `DynamicallyAccessedMembersAttrib
ute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.
JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetEvents()' with parameters or return value with `DynamicallyAccessedMembersAttribute` is accessed vi
a reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\Sy
stem.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetEvents(BindingFlags)' with parameters or return value with `DynamicallyAccessedMembersAttribute` is
 accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScr
ipt\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetField(String)' with parameters or return value with `DynamicallyAccessedMembersAttribute` is access
ed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tes
ts\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetField(String, BindingFlags)' with parameters or return value with `DynamicallyAccessedMembersAttrib
ute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.
JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetFields()' with parameters or return value with `DynamicallyAccessedMembersAttribute` is accessed vi
a reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\Sy
stem.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetFields(BindingFlags)' with parameters or return value with `DynamicallyAccessedMembersAttribute` is
 accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScr
ipt\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetInterface(String)' with parameters or return value with `DynamicallyAccessedMembersAttribute` is ac
cessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript
\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetInterface(String, Boolean)' with parameters or return value with `DynamicallyAccessedMembersAttribu
te` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.J
avaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetInterfaceMap(Type)' with parameters or return value with `DynamicallyAccessedMembersAttribute` is a
ccessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScrip
t\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetInterfaces()' with parameters or return value with `DynamicallyAccessedMembersAttribute` is accesse
d via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\test
s\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetMember(String)' with parameters or return value with `DynamicallyAccessedMembersAttribute` is acces
sed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\te
sts\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetMember(String, BindingFlags)' with parameters or return value with `DynamicallyAccessedMembersAttri
bute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices
.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetMember(String, MemberTypes, BindingFlags)' with parameters or return value with `DynamicallyAccesse
dMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.In
teropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-brows
er]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetMembers()' with parameters or return value with `DynamicallyAccessedMembersAttribute` is accessed v
ia reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\S
ystem.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetMembers(BindingFlags)' with parameters or return value with `DynamicallyAccessedMembersAttribute` i
s accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaSc
ript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetMethod(String)' with parameters or return value with `DynamicallyAccessedMembersAttribute` is acces
sed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\te
sts\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetMethod(String, Int32, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])' with
parameters or return value with `DynamicallyAccessedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the metho
d. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.Ja
vaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetMethod(String, Int32, BindingFlags, Binder, Type[], ParameterModifier[])' with parameters or return
 value with `DynamicallyAccessedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\
src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.cspro
j::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetMethod(String, Int32, BindingFlags, Type[])' with parameters or return value with `DynamicallyAcces
sedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.
InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-bro
wser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetMethod(String, Int32, Type[])' with parameters or return value with `DynamicallyAccessedMembersAttr
ibute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropService
s.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetMethod(String, Int32, Type[], ParameterModifier[])' with parameters or return value with `Dynamical
lyAccessedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.R
untime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net
9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetMethod(String, BindingFlags)' with parameters or return value with `DynamicallyAccessedMembersAttri
bute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices
.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetMethod(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])' with paramet
ers or return value with `DynamicallyAccessedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\
git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScrip
t.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])' with parameters or return value
with `DynamicallyAccessedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\lib
raries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::Targ
etFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetMethod(String, BindingFlags, Type[])' with parameters or return value with `DynamicallyAccessedMemb
ersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.Interop
Services.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetMethod(String, Type[])' with parameters or return value with `DynamicallyAccessedMembersAttribute`
is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaS
cript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetMethod(String, Type[], ParameterModifier[])' with parameters or return value with `DynamicallyAcces
sedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.
InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-bro
wser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetMethods()' with parameters or return value with `DynamicallyAccessedMembersAttribute` is accessed v
ia reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\S
ystem.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetMethods(BindingFlags)' with parameters or return value with `DynamicallyAccessedMembersAttribute` i
s accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaSc
ript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetNestedType(String)' with parameters or return value with `DynamicallyAccessedMembersAttribute` is a
ccessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScrip
t\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetNestedType(String, BindingFlags)' with parameters or return value with `DynamicallyAccessedMembersA
ttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServ
ices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetNestedTypes()' with parameters or return value with `DynamicallyAccessedMembersAttribute` is access
ed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tes
ts\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetNestedTypes(BindingFlags)' with parameters or return value with `DynamicallyAccessedMembersAttribut
e` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.Ja
vaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetProperties()' with parameters or return value with `DynamicallyAccessedMembersAttribute` is accesse
d via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\test
s\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetProperties(BindingFlags)' with parameters or return value with `DynamicallyAccessedMembersAttribute
` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.Jav
aScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetProperty(String)' with parameters or return value with `DynamicallyAccessedMembersAttribute` is acc
essed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\
tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetProperty(String, BindingFlags)' with parameters or return value with `DynamicallyAccessedMembersAtt
ribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServic
es.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])' with parameters or retur
n value with `DynamicallyAccessedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3
\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.cspr
oj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetProperty(String, Type)' with parameters or return value with `DynamicallyAccessedMembersAttribute`
is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaS
cript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetProperty(String, Type, Type[])' with parameters or return value with `DynamicallyAccessedMembersAtt
ribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServic
es.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetProperty(String, Type, Type[], ParameterModifier[])' with parameters or return value with `Dynamica
llyAccessedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.
Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=ne
t9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.GetProperty(String, Type[])' with parameters or return value with `DynamicallyAccessedMembersAttribute
` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.Jav
aScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2026: Using member 'System.Type.GetType(String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trim
ming application code. The type might be removed. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScr
ipt.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2026: Using member 'System.Type.GetType(String, Boolean)' which has 'RequiresUnreferencedCodeAttribute' can break functionality
when trimming application code. The type might be removed. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropService
s.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2026: Using member 'System.Type.GetType(String, Boolean, Boolean)' which has 'RequiresUnreferencedCodeAttribute' can break funct
ionality when trimming application code. The type might be removed. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.Inter
opServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2026: Using member 'System.Type.GetType(String, Func<AssemblyName, Assembly>, Func<Assembly, String, Boolean, Type>)' which has
'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. The type might be removed. [C:\git\runtime3\src\libraries\System.Runtime.In
teropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-brows
er]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2026: Using member 'System.Type.GetType(String, Func<AssemblyName, Assembly>, Func<Assembly, String, Boolean, Type>, Boolean)' w
hich has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. The type might be removed. [C:\git\runtime3\src\libraries\System.R
untime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net
9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2026: Using member 'System.Type.GetType(String, Func<AssemblyName, Assembly>, Func<Assembly, String, Boolean, Type>, Boolean, Bo
olean)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. The type might be removed. [C:\git\runtime3\src\libraries
\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFram
ework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.InvokeMember(String, BindingFlags, Binder, Object, Object[])' with parameters or return value with `Dy
namicallyAccessedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\S
ystem.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramew
ork=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.InvokeMember(String, BindingFlags, Binder, Object, Object[], CultureInfo)' with parameters or return v
alue with `DynamicallyAccessedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\sr
c\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj:
:TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[
])' with parameters or return value with `DynamicallyAccessedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of
the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropSe
rvices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2026: Using member 'System.Type.MakeGenericType(params Type[])' which has 'RequiresUnreferencedCodeAttribute' can break function
ality when trimming application code. If some of the generic arguments are annotated (either with DynamicallyAccessedMembersAttribute, or generic constraints), trimmin
g can't validate that the requirements of those annotations are met. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.Inte
ropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1069,13): error IL2111: Method 'System.Type.TypeInitializer.get' with parameters or return value with `DynamicallyAccessedMembersAttribute` is acc
essed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\
tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1175,13): error IL2026: Using member 'System.Delegate.CreateDelegate(Type, Object, String)' which has 'RequiresUnreferencedCodeAttribute' can brea
k functionality when trimming application code. The target method might be removed. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\Syst
em.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1175,13): error IL2026: Using member 'System.Delegate.CreateDelegate(Type, Object, String, Boolean)' which has 'RequiresUnreferencedCodeAttribute'
 can break functionality when trimming application code. The target method might be removed. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\t
ests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1175,13): error IL2026: Using member 'System.Delegate.CreateDelegate(Type, Object, String, Boolean, Boolean)' which has 'RequiresUnreferencedCodeA
ttribute' can break functionality when trimming application code. The target method might be removed. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.Jav
aScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1175,13): error IL2111: Method 'System.Delegate.CreateDelegate(Type, Type, String)' with parameters or return value with `DynamicallyAccessedMembe
rsAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropS
ervices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1175,13): error IL2111: Method 'System.Delegate.CreateDelegate(Type, Type, String, Boolean)' with parameters or return value with `DynamicallyAcce
ssedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime
.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-br
owser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1175,13): error IL2111: Method 'System.Delegate.CreateDelegate(Type, Type, String, Boolean, Boolean)' with parameters or return value with `Dynami
callyAccessedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\Syste
m.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=
net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1190,13): error IL2026: Using member 'System.Delegate.CreateDelegate(Type, Object, String)' which has 'RequiresUnreferencedCodeAttribute' can brea
k functionality when trimming application code. The target method might be removed. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\Syst
em.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1190,13): error IL2026: Using member 'System.Delegate.CreateDelegate(Type, Object, String, Boolean)' which has 'RequiresUnreferencedCodeAttribute'
 can break functionality when trimming application code. The target method might be removed. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\t
ests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1190,13): error IL2026: Using member 'System.Delegate.CreateDelegate(Type, Object, String, Boolean, Boolean)' which has 'RequiresUnreferencedCodeA
ttribute' can break functionality when trimming application code. The target method might be removed. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.Jav
aScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1190,13): error IL2111: Method 'System.Delegate.CreateDelegate(Type, Type, String)' with parameters or return value with `DynamicallyAccessedMembe
rsAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropS
ervices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1190,13): error IL2111: Method 'System.Delegate.CreateDelegate(Type, Type, String, Boolean)' with parameters or return value with `DynamicallyAcce
ssedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime
.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-br
owser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1190,13): error IL2111: Method 'System.Delegate.CreateDelegate(Type, Type, String, Boolean, Boolean)' with parameters or return value with `Dynami
callyAccessedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\Syste
m.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=
net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1225,17): error IL2026: Using member 'System.Delegate.CreateDelegate(Type, Object, String)' which has 'RequiresUnreferencedCodeAttribute' can brea
k functionality when trimming application code. The target method might be removed. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\Syst
em.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1225,17): error IL2026: Using member 'System.Delegate.CreateDelegate(Type, Object, String, Boolean)' which has 'RequiresUnreferencedCodeAttribute'
 can break functionality when trimming application code. The target method might be removed. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\t
ests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1225,17): error IL2026: Using member 'System.Delegate.CreateDelegate(Type, Object, String, Boolean, Boolean)' which has 'RequiresUnreferencedCodeA
ttribute' can break functionality when trimming application code. The target method might be removed. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.Jav
aScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1225,17): error IL2111: Method 'System.Delegate.CreateDelegate(Type, Type, String)' with parameters or return value with `DynamicallyAccessedMembe
rsAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime.InteropS
ervices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1225,17): error IL2111: Method 'System.Delegate.CreateDelegate(Type, Type, String, Boolean)' with parameters or return value with `DynamicallyAcce
ssedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\System.Runtime
.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-br
owser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1225,17): error IL2111: Method 'System.Delegate.CreateDelegate(Type, Type, String, Boolean, Boolean)' with parameters or return value with `Dynami
callyAccessedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. [C:\git\runtime3\src\libraries\Syste
m.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=
net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1428,13): error IL2091: 'T' generic argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods', 'DynamicallyAccessedMemberTypes.Publ
icFields', 'DynamicallyAccessedMemberTypes.NonPublicFields', 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.NonPublicProperties' in
 'Xunit.Assert.Equal<T>(T, T)'. The generic parameter 'T' of 'System.Runtime.InteropServices.JavaScript.Tests.JSImportTest.JsImportTest<T>(T, Action<T>, Func<T>, Func<
T, T>, Func<T, T>, Func<T, Boolean>, String, String)' does not have matching annotations. The source value must declare at least the same requirements as those declare
d on the target location it is assigned to. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.Un
itTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1430,13): error IL2091: 'T' generic argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods', 'DynamicallyAccessedMemberTypes.Publ
icFields', 'DynamicallyAccessedMemberTypes.NonPublicFields', 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.NonPublicProperties' in
 'Xunit.Assert.Equal<T>(T, T)'. The generic parameter 'T' of 'System.Runtime.InteropServices.JavaScript.Tests.JSImportTest.JsImportTest<T>(T, Action<T>, Func<T>, Func<
T, T>, Func<T, T>, Func<T, Boolean>, String, String)' does not have matching annotations. The source value must declare at least the same requirements as those declare
d on the target location it is assigned to. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.Un
itTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1533,25): error IL2091: 'T' generic argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods', 'DynamicallyAccessedMemberTypes.Publ
icFields', 'DynamicallyAccessedMemberTypes.NonPublicFields', 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.NonPublicProperties' in
 'Xunit.Assert.Equal<T>(T, T)'. The generic parameter 'T' of 'System.Runtime.InteropServices.JavaScript.Tests.JSImportTest.JsImportTest<T>(T, Action<T>, Func<T>, Func<
T, T>, Func<T, T>, Func<T, Boolean>, String, String)' does not have matching annotations. The source value must declare at least the same requirements as those declare
d on the target location it is assigned to. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.Un
itTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1550,17): error IL2026: Using member 'System.Exception.TargetSite.get' which has 'RequiresUnreferencedCodeAttribute' can break functionality when
trimming application code. Metadata for the method might be incomplete or removed. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\Syste
m.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]
C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\System.Runtime.InteropServices.JavaScript.UnitTests\System\Runtime\InteropServices\JavaSc
ript\JSImportTest.cs(1550,17): error IL2026: Using member 'System.Exception.TargetSite.get' which has 'RequiresUnreferencedCodeAttribute' can break functionality when
trimming application code. Metadata for the method might be incomplete or removed. [C:\git\runtime3\src\libraries\System.Runtime.InteropServices.JavaScript\tests\Syste
m.Runtime.InteropServices.JavaScript.UnitTests\System.Runtime.InteropServices.JavaScript.Tests.csproj::TargetFramework=net9.0-browser]

This needs to be fixed for #106474

@pavelsavara

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Aug 15, 2024
@pavelsavara pavelsavara added the arch-wasm WebAssembly architecture label Aug 16, 2024
Copy link
Contributor

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

@pavelsavara
Copy link
Member

That assembly only makes sense for Browser target.
It also has <TargetFrameworks>$(NetCoreAppCurrent)-browser</TargetFrameworks> only.

Is that not enough ?

We could make all <Compile conditional for browser only, if that helps. Essentially making that assembly empty on other platforms.

@pavelsavara
Copy link
Member

src\libraries\System.Runtime.InteropServices.JavaScript\tests\JavaScriptLibrary\JavaScriptLibrary.csproj will probably have the same issue

@ViktorHofer
Copy link
Member Author

ViktorHofer commented Aug 16, 2024

That assembly only makes sense for Browser target.

For execution, yes but managed libraries must be buildable on all OSs. Maybe the linker settings are wrong?

Or to rephrase, why does the linker not emit errors when building with a TargetOS=browser?

@pavelsavara
Copy link
Member

I tested locally. If I remove

    <EnableAggressiveTrimming>true</EnableAggressiveTrimming>
    <PublishTrimmed>true</PublishTrimmed>

it will pass just fine on non-browser. I don't know why trimming doesn't complain for browser.

@ViktorHofer
Copy link
Member Author

ViktorHofer commented Aug 19, 2024

@pavelsavara can you please send me a binlog when you successfully build that project on browser (offline via Teams)? I'm not sure if I can find that in a CI run somewhere. I would like to compare the linker settings on non browser vs browser.

@dotnet-policy-service dotnet-policy-service bot added the in-pr There is an active PR which will close this issue when it is merged label Aug 19, 2024
@pavelsavara pavelsavara self-assigned this Aug 19, 2024
@pavelsavara pavelsavara added this to the 10.0.0 milestone Aug 19, 2024
@pavelsavara pavelsavara removed the untriaged New issue has not been triaged by the area owner label Aug 19, 2024
@pavelsavara
Copy link
Member

@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-System.Runtime.InteropServices.JavaScript in-pr There is an active PR which will close this issue when it is merged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants