FULL AI ANALYSIS

C# build fails with duplicate assembly attributes in CI only

Generated Sep 21, 2026, 11:55:04 AM

Analysis summary

The reported behaviour is consistent with stale generated files from another target framework are restored from the build cache. The safest next step is to verify that hypothesis with a reversible test before making permanent configuration changes.

Possible causes

Stale generated files from another target framework are restored from the build cache.

77%

A recent software, firmware or configuration change is exposing an existing compatibility issue.

29%

Suggested fixes

1

Verify the likely cause

Exclude bin and obj from caching, delete them before restore and key caches on SDK plus project files rather than workspace output.

2

Validate and monitor

Reproduce the issue once after the change, review relevant logs or metrics, and keep a rollback path until the system has remained stable.