Skip to content

Introduce NetDaemon V7 on .NET 11 and align prerelease workflows - #1519

Open
helto4real wants to merge 3 commits into
mainfrom
dotnet11_upgrade
Open

helto4real wants to merge 3 commits into
mainfrom
dotnet11_upgrade

Conversation

@helto4real

@helto4real helto4real commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

Breaking change

NetDaemon V7 packages and nd-codegen now target .NET 11. Install the .NET 11 SDK, retarget applications to net11.0, and rebuild compiled applications before deploying them with this release. V7 images are published separately as netdaemon7 and netdaemon_addon7, using the existing :11 .NET base images. V6 image names are preserved for .NET 10 users. This moves NetDaemon and its dependencies to the current .NET release.

Proposed change

Introduce NetDaemon V7 by upgrading the repository from .NET 10 to SDK 11.0.100 and net11.0, including CI, the development container, Docker build stages, and the :11 runtime base images.

  • Update relevant NuGet dependencies to their latest stable versions, including Roslyn, MSBuild, NuGet libraries, test tooling, and Microsoft.Extensions. Remove abstraction-package references now supplied by the framework and duplicate legacy NetDaemon package references in the standalone debug project.
  • Keep C# 14 and the existing analysis requirements. Make focused analyzer fixes to shutdown waits and test helpers, and add a regression test proving that pipeline cleanup still completes when message-pump cleanup faults.
  • Publish all release, prerelease, feature, and development images under V7 names, and update startup messages and the README to V7. The .NET base-image names remain netdaemon_base:11 and netdaemon_addonbase:11.
  • Correct the manual add-on GHCR path, stamp feature builds with their requested tag, align normal/add-on prerelease versions, and make Docker add-on label stamping match the Dockerfile. Existing workflow triggers are preserved.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (which adds functionality to an existing integration)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Validation completed locally in this branch:

  • dotnet outdated dry-run succeeded; dotnet outdated -u applied the upgrades. Final checks for the solution, benchmark project, and standalone debug project report No outdated dependencies were detected.
  • dotnet build NetDaemon.sln --configuration Release -p:TreatWarningsAsErrors=true: passed with 0 warnings and 0 errors.
  • Full solution tests with Release, warnings-as-errors, and Coverlet JSON/Cobertura coverage: 500 passed (495 unit tests and 5 Docker-backed Home Assistant stable integration tests), 0 failed, 0 skipped. The previously uncovered shutdown catch/log lines are now hit by the new regression test.
  • dotnet test tests/Integration/NetDaemon.Tests.Integration --no-build --configuration Release -e HomeAssistantVersion=beta --logger "trx;LogFileName=netdaemon-v7-beta.trx" --verbosity quiet: 5 passed, 0 failed, 0 skipped.
  • Standalone benchmark and MyNDApp Release builds passed with 0 warnings and 0 errors.
  • Local solution packaging succeeded. It emitted two warnings for the intentionally non-packable DebugWebHost and HassClient test projects.
  • YAML/shell syntax checks and 11 temporary-copy workflow checks passed for release, alpha/beta/rc, and feature versions. Docker commands were stubbed for these checks; no images were published.
  • git diff --check passed.

Existing tests were adapted for analyzer requirements, and a shutdown-failure regression test was added. The local coverage run confirms that the new error-handling lines are covered. Manual alpha validation will be performed by the maintainer. Docker image builds and live GitHub Actions runs have not been validated locally.

Companion add-on configuration and turquoise icon changes: net-daemon/homeassistant-addon#121 (alpha only; draft pending V7 alpha image publication). Stable V7 releases and versioning will be handled manually by the maintainer through the release scripts.

  • This PR fixes or closes issue: N/A
  • This PR is related to issue: N/A
  • Link to documentation pull request: N/A

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • The code compiles without warnings (code quality check)
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration are added/changed:

@codecov

codecov Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83%. Comparing base (4696609) to head (77b3cf7).

Additional details and impacted files
@@         Coverage Diff          @@
##           main   #1519   +/-   ##
====================================
- Coverage    83%     83%   -1%     
====================================
  Files       201     201           
  Lines      4179    4177    -2     
  Branches    478     478           
====================================
- Hits       3489    3478   -11     
- Misses      493     500    +7     
- Partials    197     199    +2     
Flag Coverage Δ
unittests 83% <100%> (-1%) ⬇️

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.

@helto4real helto4real changed the title Upgrade to .NET 11 and align Docker prerelease workflows Introduce NetDaemon V7 on .NET 11 and align prerelease workflows Nov 14, 2026
@helto4real
helto4real had a problem deploying to CI - release environment November 14, 2026 13:33 — with GitHub Actions Failure
@helto4real
helto4real temporarily deployed to CI - release environment November 14, 2026 13:40 — with GitHub Actions Inactive
@helto4real
helto4real deployed to CI - release environment November 14, 2026 13:47 — with GitHub Actions Active
@helto4real
helto4real temporarily deployed to CI - release environment November 14, 2026 13:47 — with GitHub Actions Inactive

This branch was successfully deployed

1 active deployment
CI - release environment — 77b3cf7b Deployed Nov 14, 2026 by helto4real via 📦 Deploy pre-release to Docker with tag #13
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.

1 participant