Skip to content

Release build fails on AOT analyzer JSON serialization warnings #2791

Description

@Widthdom

Summary

On current origin/main, the standard pre-PR build command fails before this branch's extractor changes are involved:

dotnet build CodeIndex.sln -c Release -p:UseSharedCompilation=false

The failure is a broad set of AOT/trim analyzer errors from existing JSON serialization call sites, for example:

  • src/CodeIndex/Cli/ActiveWorkspace.cs(55,38): error IL3050
  • src/CodeIndex/Cli/WorkspaceCommandRunner.cs(30,35): error IL3050
  • src/CodeIndex/Cli/CdidxConfigFile.cs(359,27): error IL3050
  • src/CodeIndex/Mcp/McpToolHandlers.cs(...): error IL3050

Observed on commit 03142f4028793b0cd46682b694d709de26d25de4 / branch work merged with latest origin/main.

Expected

The documented Release build command should pass, or the project should disable these analyzers for non-AOT validation if they are intentionally out of scope.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions