You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Scope VerifyReferenceAotCompatibility to an AOT Publish in dotnet-codestyle #1857
.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.
Activity
Centralize .NET Build and Package Configuration per the Fleet (#589)
Scope VerifyReferenceAotCompatibility to an AOT Publish in dotnet-cod…