Add .NET 10.0 target framework support to all projects and CI workflows #194
+14
−8
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.
This PR adds .NET 10.0 target framework support across all projects in the repository and updates the CI/CD pipeline to build and test against .NET 10.0.
Changes
Project Files
Updated all 5 project files to target both .NET 8.0 and .NET 10.0:
Projects that previously used singular
TargetFrameworkhave been updated to use pluralTargetFrameworkswith bothnet8.0;net10.0targets.GitHub Actions Workflow
Updated
.github/workflows/dotnet.ymlto install both .NET 8.0.x and 10.0.x SDKs in all three jobs:The workflow now uses the multi-line syntax for
dotnet-version:Benefits
Notes
The changes are ready for the .NET 10.0 release. The CI builds will succeed on .NET 8.0 targets immediately, and will automatically include .NET 10.0 builds once the SDK is available in GitHub Actions runners.
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:
https://storage.googleapis.com/chrome-for-testing-public/138.0.7204.92/linux64/chrome-linux64.zip/usr/share/dotnet/dotnet exec --runtimeconfig /home/REDACTED/work/OpenXmlToHtml/OpenXmlToHtml/OpenXmlToHtmlTests/bin/Release/net8.0/OpenXmlToHtmlTests.runtimeconfig.json --depsfile /home/REDACTED/work/OpenXmlToHtml/OpenXmlToHtml/OpenXmlToHtmlTests/bin/Release/net8.0/OpenXmlToHtmlTests.deps.json /home/REDACTED/work/OpenXmlToHtml/OpenXmlToHtml/OpenXmlToHtmlTests/bin/Release/net8.0/testhost.dll --port 43795 --endpoint 127.0.0.1:043795 --role client --parentprocessid 3740 --telemetryoptedin false(http block)/usr/share/dotnet/dotnet exec --runtimeconfig /home/REDACTED/work/OpenXmlToHtml/OpenXmlToHtml/OpenXmlToHtmlOpenApiTests/bin/Release/net8.0/OpenXmlToHtmlOpenApiTests.runtimeconfig.json --depsfile /home/REDACTED/work/OpenXmlToHtml/OpenXmlToHtml/OpenXmlToHtmlOpenApiTests/bin/Release/net8.0/OpenXmlToHtmlOpenApiTests.deps.json /home/REDACTED/work/OpenXmlToHtml/OpenXmlToHtml/OpenXmlToHtmlOpenApiTests/bin/Release/net8.0/testhost.dll --port 38469 --endpoint 127.0.0.1:038469 --role client --parentprocessid 3733 --telemetryoptedin false(http 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.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.