Skip to content

Scope VerifyReferenceAotCompatibility to an AOT Publish in dotnet-codestyle #1857

Closed

Description

@ptr727

.agents/skills/dotnet-codestyle/references/project-config.md item 2, and the summary line in SKILL.md, state <IsAotCompatible>true</IsAotCompatible> and <VerifyReferenceAotCompatibility>true</VerifyReferenceAotCompatibility> as unconditional project settings.

Unconditional reference verification fails the build under the fleet's own TreatWarningsAsErrors whenever a dependency is not built with IsAotCompatible. Converging ptr727/NxWitness on the rule, dotnet build failed with IL3058 for System.CommandLine, Serilog.Sinks.Console, Serilog.Enrichers.Thread, and the Polly.*, System.Threading.RateLimiting, and Microsoft.Extensions.ObjectPool assemblies that Microsoft.Extensions.Http.Resilience brings in. Those are ordinary fleet dependencies.

The fleet already works around this. PhotoCleaner, the release-chain pilot, sets IsAotCompatible unconditionally and VerifyReferenceAotCompatibility only inside <PropertyGroup Condition="'$(PublishAot)' == 'true'">. NxWitness now does the same. The skill text and the conforming repositories disagree.

Proposed fix: state VerifyReferenceAotCompatibility as scoped to the PublishAot condition, with the reason, so the next repository that converges does not fail its build and then have to rediscover the scoping.

Metadata

Metadata

Assignees

No one assigned

    Labels

    skills

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions