Binary release builds fixed (NETSDK1207)
Build-only fix: the release pipeline's binary build jobs were failing for all targets (Linux, macOS, Windows). No user-facing output changes.
🐛 Bug fixes
- Binary release builds failed with NETSDK1207:
PublishAot=truewas propagating from the mainOocx.TfPlan2Mdproject into theJsonEmbedGeneratoranalyzer project reference duringdotnet publish. BecauseJsonEmbedGeneratortargetsnetstandard2.0, the .NET SDK rejected the AOT property withNETSDK1207: Ahead-of-time compilation is not supported for the target framework. All binary targets (linux-x64, linux-musl-x64, osx-x64, osx-arm64, win-x64) were blocked. The fix marks the analyzer project reference as AOT-isolated viaGlobalPropertiesToRemoveon theProjectReferenceand addsTreatAsLocalProperty="PublishAot"+<PublishAot>false</PublishAot>in the generator project to prevent restore-time propagation.
🔗 Commits
079df51afix: isolate AOT publish from JsonEmbedGenerator build