Skip to content

Opt-in runtime-async: AssemblyGenerator parse options + net11 csproj flag (#1040) - #1159

Merged
jeremydmiller merged 1 commit into
mainfrom
stoat/critter-stack-net11/jfx-runtime-async
Nov 10, 2026
Merged

jeremydmiller merged 1 commit into
mainfrom
stoat/critter-stack-net11/jfx-runtime-async

Conversation

@jeremydmiller

Copy link
Copy Markdown
Member

Fixes #1040

  • GenerationRules.UseRuntimeAsync / AssemblyGenerator.UseRuntimeAsync (off by default): adds runtime-async=on to the CSharpParseOptions used for generated code. Compile-time gated (NET11_0_OR_GREATER); ignored on net10.0, where the runtime would refuse to load the result. Included in the ReuseCompiledAssemblies cache key.
  • Directory.Build.props: -p:JasperFxRuntimeAsync=true turns on <Features>runtime-async=on</Features> for net11.0 only (verified with -getProperty:Features; net10.0 unaffected). Default off.
  • The Roslyn 5.x pin on net11.0 was already done in net10;net11, drop net9; LangVersion; source-generator test projects off net9; workflows #1039.
  • Tests (runtime_async_compilation): checks MethodImpl.Async / no AsyncStateMachine on net11, state machine on net10, and that the code runs. CodegenTests: 503 pass on net10.0 and net11.0.

🤖 Generated with Claude Code

…ator parse options, JasperFxRuntimeAsync csproj flag for net11.0 (#1040)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.

AssemblyGenerator parse options + runtime-async csproj flag conditioned on net11 (opt-in, D4)

1 participant