Repository navigation
Closed
Labels
area-Tools-ILLink.NET linker development as well as trimming analyzers
Description
I am building main as:
build.cmd clr+libs+libs.tests -rc Checked -lc Release /p:TestNativeAot=true -test
The build fails with
C:\Users\vs\.nuget\packages\microsoft.net.compilers.toolset\5.12.0-1.26458.117\tasks\netcore\Microsoft.CSharp.Core.targets(97,5): error : Process terminated. [E:\dotnet003\runtime\src\libraries\System.Runtime\tests\System.Runtime.Tests\System.Runtime.Tests.csproj::TargetFramework=net11.0-windows]
C:\Users\vs\.nuget\packages\microsoft.net.compilers.toolset\5.12.0-1.26458.117\tasks\netcore\Microsoft.CSharp.Core.targets(97,5): error : Assertion failed. [E:\dotnet003\runtime\src\libraries\System.Runtime\tests\System.Runtime.Tests\System.Runtime.Tests.csproj::TargetFramework=net11.0-windows]
C:\Users\vs\.nuget\packages\microsoft.net.compilers.toolset\5.12.0-1.26458.117\tasks\netcore\Microsoft.CSharp.Core.targets(97,5): error : at ILLink.RoslynAnalyzer.DataFlow.MethodBodyValue..ctor(ISymbol owningSymbol, ControlFlowGraph cfg) in E:\dotnet003\runtime\src\tools\illink\src\ILLink.RoslynAnalyzer\DataFlow\MethodBodyValue.cs:line 23 [E:\dotnet003\runtime\src\libraries\System.Runtime\tests\System.Runtime.Tests\System.Runtime.Tests.csproj::TargetFramework=net11.0-windows]
C:\Users\vs\.nuget\packages\microsoft.net.compilers.toolset\5.12.0-1.26458.117\tasks\netcore\Microsoft.CSharp.Core.targets(97,5): error : at ILLink.RoslynAnalyzer.DataFlow.LocalDataFlowAnalysis`6.InterproceduralAnalyze() in E:\dotnet003\runtime\src\tools\illink\src\ILLink.RoslynAnalyzer\DataFlow\LocalDataFlowAnalysis.cs:line 91 [E:\dotnet003\runtime\src\libraries\System.Runtime\tests\System.Runtime.Tests\System.Runtime.Tests.csproj::TargetFramework=net11.0-windows]
C:\Users\vs\.nuget\packages\microsoft.net.compilers.toolset\5.12.0-1.26458.117\tasks\netcore\Microsoft.CSharp.Core.targets(97,5): error : at ILLink.RoslynAnalyzer.DynamicallyAccessedMembersAnalyzer.<>c__DisplayClass13_0.<Initialize>b__1(OperationBlockAnalysisContext context) in E:\dotnet003\runtime\src\tools\illink\src\ILLink.RoslynAnalyzer\DynamicallyAccessedMembersAnalyzer.cs:line 119 [E:\dotnet003\runtime\src\libraries\System.Runtime\tests\System.Runtime.Tests\System.Runtime.Tests.csproj::TargetFramework=net11.0-windows]
C:\Users\vs\.nuget\packages\microsoft.net.compilers.toolset\5.12.0-1.26458.117\tasks\netcore\Microsoft.CSharp.Core.targets(97,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.<>c.<ExecuteOperationBlockActions>b__59_4(ValueTuple`2 data) [E:\dotnet003\runtime\src\libraries\System.Runtime\tests\System.Runtime.Tests\System.Runtime.Tests.csproj::TargetFramework=net11.0-windows]
C:\Users\vs\.nuget\packages\microsoft.net.compilers.toolset\5.12.0-1.26458.117\tasks\netcore\Microsoft.CSharp.Core.targets(97,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock[TArg](DiagnosticAnalyzer analyzer, Action`1 analyze, TArg argument, Nullable`1 info, CancellationToken cancellationToken) [E:\dotnet003\runtime\src\libraries\System.Runtime\tests\System.Runtime.Tests\System.Runtime.Tests.csproj::TargetFramework=net11.0-windows]
C:\Users\vs\.nuget\packages\microsoft.net.compilers.toolset\5.12.0-1.26458.117\tasks\netcore\Microsoft.CSharp.Core.targets(97,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows[TArg](DiagnosticAnalyzer analyzer, Action`1 analyze, TArg argument, Nullable`1 contextInfo, CancellationToken cancellationToken) [E:\dotnet003\runtime\src\libraries\System.Runtime\tests\System.Runtime.Tests\System.Runtime.Tests.csproj::TargetFramework=net11.0-windows]
C:\Users\vs\.nuget\packages\microsoft.net.compilers.toolset\5.12.0-1.26458.117\tasks\netcore\Microsoft.CSharp.Core.targets(97,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.<>c.<ExecuteOperationBlockActions>b__59_2(HashSet`1 blockActions, AnalyzerDiagnosticReporter diagReporter, Func`3 isSupportedDiagnostic, ExecutionData executionData, ValueTuple`6 args, CancellationToken cancellationToken) [E:\dotnet003\runtime\src\libraries\System.Runtime\tests\System.Runtime.Tests\System.Runtime.Tests.csproj::TargetFramework=net11.0-windows]
could potentially be a Roslyn bug - I am not sure.
Metadata
Metadata
Assignees
Labels
area-Tools-ILLink.NET linker development as well as trimming analyzers
Type
Projects
- StatusShow more project fieldsNo status
Activity
dotnet-policy-service commentedon Sep 12, 2026
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.
dotnet-policy-service commentedon Sep 12, 2026
Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
See info in area-owners.md if you want to be subscribed.
MihuBot commentedon Sep 12, 2026
I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):
dotnet-policy-service commentedon Sep 13, 2026
Tagging subscribers to this area: @agocke, @dotnet/illink
See info in area-owners.md if you want to be subscribed.
Fix trim analyzer assertion for event initializers (#133902)
Fix trim analyzer assertion for event initializers (dotnet#133902)