Summary
After merging the latest origin/main into codex/fix-issue1460-1640-2752, dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter FullyQualifiedName~McpServerTests -p:UseSharedCompilation=false fails during build before tests run because Native AOT analyzer warnings are emitted as IL3050 errors.
Evidence
Representative errors:
src/CodeIndex/Cli/ActiveWorkspace.cs(55,38): error IL3050: Using member 'System.Text.Json.JsonSerializer.Serialize<TValue>(...)' ... Use System.Text.Json source generation for native AOT applications.
src/CodeIndex/Mcp/McpServer.cs(259,32): error IL3050: Using member 'System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver.DefaultJsonTypeInfoResolver()' ...
src/CodeIndex/Cli/SuggestionStore.cs(79,29): error IL3050: Using member 'System.Text.Json.Serialization.JsonStringEnumConverter.JsonStringEnumConverter(...)' ...
The same failure occurs even with -p:IsAotCompatible=false.
Impact
Targeted test validation can be blocked on current main before the requested test cases execute.
Duplicate check
Searched open issues for IL3050 JsonSerializer and Native AOT analyzer; no open duplicate found.
Summary
After merging the latest origin/main into codex/fix-issue1460-1640-2752,
dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter FullyQualifiedName~McpServerTests -p:UseSharedCompilation=falsefails during build before tests run because Native AOT analyzer warnings are emitted as IL3050 errors.Evidence
Representative errors:
src/CodeIndex/Cli/ActiveWorkspace.cs(55,38): error IL3050: Using member 'System.Text.Json.JsonSerializer.Serialize<TValue>(...)' ... Use System.Text.Json source generation for native AOT applications.src/CodeIndex/Mcp/McpServer.cs(259,32): error IL3050: Using member 'System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver.DefaultJsonTypeInfoResolver()' ...src/CodeIndex/Cli/SuggestionStore.cs(79,29): error IL3050: Using member 'System.Text.Json.Serialization.JsonStringEnumConverter.JsonStringEnumConverter(...)' ...The same failure occurs even with
-p:IsAotCompatible=false.Impact
Targeted test validation can be blocked on current main before the requested test cases execute.
Duplicate check
Searched open issues for
IL3050 JsonSerializerandNative AOT analyzer; no open duplicate found.