Closed
Description
Happened in #116145 and #115937
Error message
Unexpected warnings were generated:
/Users/runner/work/1/s/src/tools/illink/test/Mono.Linker.Tests.Cases/DataFlow/DynamicObjects.cs(98,5): warning IL3050: Using member 'Microsoft.CSharp.RuntimeBinder.Binder.SetMember(CSharpBinderFlags, String, Type, IEnumerable<CSharpArgumentInfo>)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The 'dynamic' feature requires runtime-code generation, which is incompatible with AOT.
/Users/runner/work/1/s/src/tools/illink/test/Mono.Linker.Tests.Cases/DataFlow/DynamicObjects.cs(90,13): warning IL3050: Using member 'Microsoft.CSharp.RuntimeBinder.Binder.GetMember(CSharpBinderFlags, String, Type, IEnumerable<CSharpArgumentInfo>)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The 'dynamic' feature requires runtime-code generation, which is incompatible with AOT.
/Users/runner/work/1/s/src/tools/illink/test/Mono.Linker.Tests.Cases/DataFlow/DynamicObjects.cs(123,5): warning IL3050: Using member 'Microsoft.CSharp.RuntimeBinder.Binder.SetIndex(CSharpBinderFlags, Type, IEnumerable<CSharpArgumentInfo>)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The 'dynamic' feature requires runtime-code generation, which is incompatible with AOT.
/Users/runner/work/1/s/src/tools/illink/test/Mono.Linker.Tests.Cases/DataFlow/DynamicObjects.cs(142,6): warning IL3050: Using member 'Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags, String, IEnumerable<Type>, Type, IEnumerable<CSharpArgumentInfo>)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The 'dynamic' feature requires runtime-code generation, which is incompatible with AOT.
/Users/runner/work/1/s/src/tools/illink/test/Mono.Linker.Tests.Cases/DataFlow/DynamicObjects.cs(37,5): warning IL3050: Using member 'Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags, String, IEnumerable<Type>, Type, IEnumerable<CSharpArgumentInfo>)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The 'dynamic' feature requires runtime-code generation, which is incompatible with AOT.
/Users/runner/work/1/s/src/tools/illink/test/Mono.Linker.Tests.Cases/DataFlow/DynamicObjects.cs(56,5): warning IL3050: Using member 'Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags, String, IEnumerable<Type>, Type, IEnumerable<CSharpArgumentInfo>)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The 'dynamic' feature requires runtime-code generation, which is incompatible with AOT.
/Users/runner/work/1/s/src/tools/illink/test/Mono.Linker.Tests.Cases/DataFlow/DynamicObjects.cs(115,13): warning IL3050: Using member 'Microsoft.CSharp.RuntimeBinder.Binder.GetIndex(CSharpBinderFlags, Type, IEnumerable<CSharpArgumentInfo>)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The 'dynamic' feature requires runtime-code generation, which is incompatible with AOT.
Stack trace
at ILLink.RoslynAnalyzer.Tests.TestChecker.Check(Boolean allowMissingWarnings) in /Users/runner/work/1/s/src/tools/illink/test/ILLink.RoslynAnalyzer.Tests/TestChecker.cs:line 70
at ILLink.RoslynAnalyzer.Tests.TestCaseUtils.RunTestFile(String suiteName, String testName, Boolean allowMissingWarnings, ValueTuple`2[] msbuildProperties) in /Users/runner/work/1/s/src/tools/illink/test/ILLink.RoslynAnalyzer.Tests/TestCaseUtils.cs:line 79
--- End of stack trace from previous location ---
Disabling the test for now to unblock the codeflow.
Most likely the warnings need to be updated due to the new annotations that were done as part of #114346
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status