-
-
Notifications
You must be signed in to change notification settings - Fork 80
Migrate NetDaemon to .NET 10 #1343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1343 +/- ##
====================================
Coverage 82% 82%
====================================
Files 198 198
Lines 3892 3892
Branches 438 438
====================================
Hits 3207 3207
Misses 517 517
Partials 168 168
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: FrankBakkerNl <13922018+FrankBakkerNl@users.noreply.github.com>
Co-authored-by: FrankBakkerNl <13922018+FrankBakkerNl@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Migrate NetDaemon to .NET 10 release
Migrate NetDaemon to .NET 10
Nov 12, 2025
Copilot finished work on behalf of
FrankBakkerNl
November 12, 2025 14:56
helto4real
approved these changes
Nov 15, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Breaking change
None. The migration maintains full backward compatibility with existing functionality.
Proposed change
Migrates NetDaemon from .NET 9 to .NET 10 (LTS release, supported until November 2028). Updates all projects, Docker images, and CI/CD workflows to target the new framework.
Core Updates:
global.jsonPackage Cleanup:
Removed package references now included in .NET 10 framework:
System.IO.Pipelines(4 projects)Microsoft.Extensions.DependencyInjection.Abstractions(1 project)Microsoft.Extensions.Hosting(1 project)Docker & CI/CD:
:9to:10(requires separate base image builds)Test Adjustments:
Fixed
WebsocketIntegrationTests.TestWrongHostShouldThrowCorrectException()to handle .NET 10's exception behavior change where connection failures now throwTaskCanceledExceptioninstead ofWebSocketException.Type of change
Additional information
Note: Docker base images
netdaemon_base:10andnetdaemon_addonbase:10must be built and published separately.Checklist
If user exposed functionality or configuration are added/changed:
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
127.0.0.2/home/REDACTED/.dotnet/dotnet exec --runtimeconfig /home/REDACTED/work/netdaemon/netdaemon/src/Client/NetDaemon.HassClient.Tests/bin/Release/net10.0/NetDaemon.HassClient.Tests.runtimeconfig.json --depsfile /home/REDACTED/work/netdaemon/netdaemon/src/Client/NetDaemon.HassClient.Tests/bin/Release/net10.0/NetDaemon.HassClient.Tests.deps.json /home/REDACTED/work/netdaemon/netdaemon/src/Client/NetDaemon.HassClient.Tests/bin/Release/net10.0/testhost.dll --port 45887 --endpoint 127.0.0.1:045887 --role client --parentprocessid 4924 --telemetryoptedin false(packet block)/home/REDACTED/.dotnet/dotnet exec --runtimeconfig /home/REDACTED/work/netdaemon/netdaemon/src/Client/NetDaemon.HassClient.Tests/bin/Release/net10.0/NetDaemon.HassClient.Tests.runtimeconfig.json --depsfile /home/REDACTED/work/netdaemon/netdaemon/src/Client/NetDaemon.HassClient.Tests/bin/Release/net10.0/NetDaemon.HassClient.Tests.deps.json /home/REDACTED/work/netdaemon/netdaemon/src/Client/NetDaemon.HassClient.Tests/bin/Release/net10.0/testhost.dll --port 36147 --endpoint 127.0.0.1:036147 --role client --parentprocessid 5654 --telemetryoptedin false(packet block)/home/REDACTED/.dotnet/dotnet exec --runtimeconfig /home/REDACTED/work/netdaemon/netdaemon/src/Client/NetDaemon.HassClient.Tests/bin/Release/net10.0/NetDaemon.HassClient.Tests.runtimeconfig.json --depsfile /home/REDACTED/work/netdaemon/netdaemon/src/Client/NetDaemon.HassClient.Tests/bin/Release/net10.0/NetDaemon.HassClient.Tests.deps.json /home/REDACTED/work/netdaemon/netdaemon/src/Client/NetDaemon.HassClient.Tests/bin/Release/net10.0/testhost.dll --port 39889 --endpoint 127.0.0.1:039889 --role client --parentprocessid 7001 --telemetryoptedin false(packet block)224.0.0.251239.255.255.250255.255.255.255alerts.home-assistant.iopython3 -m homeassistant --config /config(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.