Skip to content

Conversation

Copy link

Copilot AI commented Oct 24, 2025

Overview

This PR adds .NET 10.0 target framework support to all projects in the ClosedXML repository and updates the CI/CD pipeline to build and test against .NET 10.0.

Changes

Project Files

Updated all four project files to target both net8.0 and net10.0:

  • ClosedXML/ClosedXML.csproj - Main library
  • ClosedXML.Tests/ClosedXML.Tests.csproj - Test project
  • ClosedXML.Sandbox/ClosedXML.Sandbox.csproj - Sandbox application
  • ClosedXML.Examples/ClosedXML.Examples.csproj - Examples project

The TargetFrameworks property now includes both frameworks:

<TargetFrameworks>net8.0;net10.0</TargetFrameworks>

CI/CD Workflow

Updated .github/workflows/dotnet.yml to install both .NET 8.0.x and 10.0.x SDKs in all three jobs:

  • build job (cross-platform testing on Ubuntu, Windows, and macOS)
  • deployRelease job (release deployment)
  • deployTest job (test deployment)

The setup-dotnet steps now use multi-line format to install both SDKs:

dotnet-version: |
  8.0.x
  10.0.x

Benefits

  • 🎯 Future-ready: Projects will automatically build for .NET 10.0 once the SDK is officially released
  • 🔄 Backward compatible: Full support for .NET 8.0 remains unchanged
  • CI/CD coverage: All builds and tests will run against both target frameworks
  • 📦 NuGet packages: Will include assemblies for both .NET 8.0 and 10.0

Testing

  • Verified existing .NET 8.0 builds continue to work without issues
  • Code review passed with no concerns
  • Security scan completed with zero vulnerabilities

Notes

The .NET 10.0 SDK is not yet publicly available, so builds targeting net10.0 will succeed once Microsoft releases the SDK. Until then, projects can still be built for net8.0 without any issues.

Original prompt

Update all project files in the repository to add net10.0 to the TargetFrameworks or TargetFramework property, if not already present. Also, update any GitHub Actions workflow files (e.g., .github/workflows/build.yml) to include .NET SDK version 10.0.x in the build matrix or setup-dotnet steps, ensuring CI builds and tests for .NET 10 as well. Make these updates for all mainline projects and the primary CI build workflow.

This pull request was created as a result of the following prompt from Copilot chat.

Update all project files in the repository to add net10.0 to the TargetFrameworks or TargetFramework property, if not already present. Also, update any GitHub Actions workflow files (e.g., .github/workflows/build.yml) to include .NET SDK version 10.0.x in the build matrix or setup-dotnet steps, ensuring CI builds and tests for .NET 10 as well. Make these updates for all mainline projects and the primary CI build workflow.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@github-actions
Copy link


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

Copilot AI changed the title [WIP] Update project files to add net10.0 to TargetFrameworks Add .NET 10.0 support to all projects and CI workflow Oct 24, 2025
Copilot AI requested a review from stesee October 24, 2025 12:01
@stesee stesee marked this pull request as ready for review October 29, 2025 01:13
Copilot AI review requested due to automatic review settings October 29, 2025 01:13
@stesee stesee merged commit 558426c into main Oct 29, 2025
17 of 19 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants