Add .NET 10.0 target framework support to all projects and CI workflow #141
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.
Overview
This PR adds .NET 10.0 target framework support to prepare the repository for the upcoming .NET 10 release (expected November 2025). All mainline projects now multi-target both .NET 8.0 and .NET 10.0, and the CI workflow has been updated to build and test for both frameworks.
Changes
Project Files
All four project files have been updated to multi-target
net8.0andnet10.0:Codeuctivity.HtmlRenderer/Codeuctivity.HtmlRenderer.csproj- Main libraryCodeuctivity.HtmlRendererCli/Codeuctivity.HtmlRendererCli.csproj- CLI applicationCodeuctivity.HtmlRendererTests/Codeuctivity.HtmlRendererTests.csproj- Unit testsCodeuctivity.HtmlRendererCliTests/Codeuctivity.HtmlRendererCliTests.csproj- CLI integration testsChanged from:
To:
CI Workflow
Updated
.github/workflows/dotnet.ymlacross all three jobs (build, deployRelease, deployTest):SDK Installation: Now installs both .NET 8.0.x and 10.0.x SDKs:
Publish Commands: Updated framework target from
net8.0tonet10.0:Artifact Paths: Updated all build output references to use
net10.0directory paths for packaging and release uploadsImpact
Testing Note
Full build validation with .NET 10 cannot be performed until the .NET 10 SDK is officially released (expected November 2025). However, the changes follow established .NET multi-targeting patterns and are syntactically correct. The projects maintain full compatibility with .NET 8.0.
Quality Assurance
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:
ccsca2021.crl.certum.pldotnet restore(dns block)ccsca2021.ocsp-certum.comdotnet restore(dns block)crl.certum.pldotnet restore(dns block)subca.ocsp-certum.comdotnet restore(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.