Skip to content

Support .NET 11 Preview - #1893

Closed
WhitWaldo with Copilot wants to merge 17 commits into
masterfrom
copilot/evaluate-dotnet-11-support
Closed

WhitWaldo with Copilot wants to merge 17 commits into
masterfrom
copilot/evaluate-dotnet-11-support

Conversation

Copilot AI commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Description

This updates .NET 11 support to run as a preview-only sidecar lane, while keeping the GA .NET 8/9/10 pipeline unchanged. It also addresses the net11 test-host startup failure (IDataConsumer TypeLoadException) without changing GA test stack behavior.

  • GA lanes remain frozen

    • Main build/test/integration matrices continue to target net8.0;net9.0;net10.0.
    • .NET 10 remains the primary SDK for the main build/release flow.
  • Dedicated .NET 11 preview sidecar lanes

    • Added separate unit-tests-net11 and integration-tests-net11 jobs in sdk_build.yml.
    • Net11-only behavior is scoped to those jobs (dotnet-quality: preview, DaprEnableNet11=true, global.json removal).
  • Net11-only targeting and package resolution

    • Added conditional net11 targeting behind DaprEnableNet11 in src/, test/, and examples Directory.Build.props.
    • Added net11 preview package conditions for ASP.NET test packages.
    • Scoped Microsoft.Testing.Platform pin away from net11 to avoid the preview/runtime mismatch causing test-host type load failures.
  • Compatibility updates for net11 compilation paths

    • Extended analyzer/generator test reference assembly handling for NET11_0.
    • Updated net11 framework mapping and conditional compilation guards where net10-only assumptions existed.
# net11 sidecar job pattern
- name: Remove global.json (use .NET 11 preview SDK)
  run: rm global.json
- name: Setup .NET 11.0
  uses: actions/setup-dotnet@v5
  with:
    dotnet-version: '11.0.x'
    dotnet-quality: 'preview'
env:
  DaprEnableNet11: 'true'

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #[issue number]

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

Copilot AI and others added 4 commits August 15, 2026 23:53
Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
@codecov

codecov Bot commented Aug 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.23%. Comparing base (f3e09ad) to head (2746241).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1893   +/-   ##
=======================================
  Coverage   64.23%   64.23%           
=======================================
  Files         358      358           
  Lines       10506    10506           
  Branches     1256     1256           
=======================================
  Hits         6749     6749           
- Misses       3421     3422    +1     
+ Partials      336      335    -1     
Flag Coverage Δ
net10.0 64.20% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
Copilot AI and others added 2 commits August 16, 2026 20:11
Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
@WhitWaldo WhitWaldo added this to the v1.19 milestone Aug 16, 2026
@WhitWaldo WhitWaldo changed the title Isolate .NET 11 preview CI lane and fix net11 test-host failures Support .NET 11 Preview Aug 16, 2026
Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
@WhitWaldo WhitWaldo closed this Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants