Skip to content

GH282: Evaluate runtime-async TargetFramework condition in Sdk.targets - #283

Merged
devlead merged 1 commit into
cake-build:developfrom
devlead:feature/gh-282
Nov 8, 2026
Merged

devlead merged 1 commit into
cake-build:developfrom
devlead:feature/gh-282

Conversation

@devlead

@devlead devlead commented Nov 8, 2026

Copy link
Copy Markdown
Member
  • Move the net11.0 Features runtime-async=on opt-in from generated Sdk.props / build/Cake.Sdk.props to Sdk.targets / build/Cake.Sdk.targets so the condition sees the project's final TargetFramework.
  • Fixes file-based net10.0 apps on the .NET 11 SDK getting runtime-async (SYSLIB5007/CA2252), and project-based net11.0 consumers never getting it.
  • fixes Cake.Sdk runtime-async TargetFramework condition evaluated too early in Sdk.props #282

…n Sdk.targets

- Move the net11.0 Features runtime-async=on opt-in from generated Sdk.props / build/Cake.Sdk.props to Sdk.targets / build/Cake.Sdk.targets so the condition sees the project's final TargetFramework.
- Fixes file-based net10.0 apps on the .NET 11 SDK getting runtime-async (SYSLIB5007/CA2252), and project-based net11.0 consumers never getting it.
- fixes cake-build#282
@devlead
devlead enabled auto-merge November 8, 2026 13:08
@devlead
devlead merged commit b54886f into cake-build:develop Nov 8, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cake.Sdk runtime-async TargetFramework condition evaluated too early in Sdk.props

1 participant