-
Notifications
You must be signed in to change notification settings - Fork 266
feat: add support for .NET 10 #1370
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for .NET 10 to the System.IO.Abstractions library by updating target frameworks, SDK versions, and package dependencies across the entire project.
Key Changes
- Updated .NET SDK version from 9.0.306 to 10.0.100
- Added net10.0 as a target framework alongside existing frameworks (net472, netstandard2.0/2.1, net6.0, net8.0, net9.0)
- Added baseline snapshots and API test expectations for .NET 10.0 compatibility verification
Reviewed Changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| global.json | Updated SDK version to 10.0.100 |
| src/Directory.Build.props | Added net10.0 to target frameworks |
| tests/Directory.Build.props | Added net10.0 to test target frameworks |
| Directory.Build.props | Added net10.0 to feature flags and conditional compilation |
| Directory.Packages.props | Updated package versions with framework-specific System.Text.Json versions and Testably.Abstractions to 10.0.0 |
| .github/workflows/*.yml | Added .NET 10.x to CI/CD pipelines |
| ApiParityTests.cs | Added snapshot suffix configuration for .NET 10.0 |
| tests/.../Expected/*.txt | Added API baseline snapshots for net10.0 target framework |
| tests/.../snapshots/*.snap | Added parity test snapshots comparing abstraction APIs to System.IO in .NET 10.0 |
# Conflicts: # global.json
|
|
This is addressed in release v22.1.0. |
Updated [System.IO.Abstractions](https://github.com/TestableIO/System.IO.Abstractions) from 22.0.16 to 22.1.0. <details> <summary>Release notes</summary> _Sourced from [System.IO.Abstractions's releases](https://github.com/TestableIO/System.IO.Abstractions/releases)._ ## 22.1.0 ## What's Changed * chore(deps): update dependency awexpect to 2.24.0 by @renovate[bot] in TestableIO/System.IO.Abstractions#1341 * chore(deps): update dependency benchmarkdotnet to 0.15.3 by @renovate[bot] in TestableIO/System.IO.Abstractions#1342 * chore(deps): update dependency awexpect to 2.25.0 by @renovate[bot] in TestableIO/System.IO.Abstractions#1343 * chore(deps): update dependency benchmarkdotnet to 0.15.4 by @renovate[bot] in TestableIO/System.IO.Abstractions#1344 * chore(deps): update dependency awexpect to 2.26.0 by @renovate[bot] in TestableIO/System.IO.Abstractions#1345 * chore(deps): update dependency nunit3testadapter to 5.2.0 by @renovate[bot] in TestableIO/System.IO.Abstractions#1348 * docs: removed erroneous content from Testably section in README by @HarrisonTCodes in TestableIO/System.IO.Abstractions#1349 * fix: make invalid UNC path error message platform-specific by @HarrisonTCodes in TestableIO/System.IO.Abstractions#1351 * chore(deps): update dependency sharpcompress to 0.41.0 by @renovate[bot] in TestableIO/System.IO.Abstractions#1352 * chore(deps): update dependency publicapigenerator to 11.5.0 by @renovate[bot] in TestableIO/System.IO.Abstractions#1353 * chore(deps): update dependency system.text.json to 9.0.10 by @renovate[bot] in TestableIO/System.IO.Abstractions#1354 * chore(deps): update dependency dotnet-sdk to v9.0.306 by @renovate[bot] in TestableIO/System.IO.Abstractions#1355 * chore(deps): update mcr.microsoft.com/vscode/devcontainers/dotnet docker tag to v10 by @renovate[bot] in TestableIO/System.IO.Abstractions#1357 * chore(deps): update github artifact actions (major) by @renovate[bot] in TestableIO/System.IO.Abstractions#1359 * chore(deps): update dependency nunit.analyzers to 4.11.0 by @renovate[bot] in TestableIO/System.IO.Abstractions#1362 * chore(deps): update dependency benchmarkdotnet to 0.15.5 by @renovate[bot] in TestableIO/System.IO.Abstractions#1364 * chore(deps): update dependency nunit.analyzers to 4.11.1 by @renovate[bot] in TestableIO/System.IO.Abstractions#1365 * chore(deps): update dependency nunit.analyzers to 4.11.2 by @renovate[bot] in TestableIO/System.IO.Abstractions#1366 * chore(deps): update dependency benchmarkdotnet to 0.15.6 by @renovate[bot] in TestableIO/System.IO.Abstractions#1367 * chore(deps): update dependency system.text.json to v10 by @renovate[bot] in TestableIO/System.IO.Abstractions#1369 * chore(deps): update dependency dotnet-sdk to v9.0.307 by @renovate[bot] in TestableIO/System.IO.Abstractions#1368 * chore(deps): update dependency testably.abstractions.filesystem.interface to v10 by @renovate[bot] in TestableIO/System.IO.Abstractions#1372 * feat: add support for .NET 10 by @vbreuss in TestableIO/System.IO.Abstractions#1370 * chore(deps): update dependency system.text.json to v10 by @renovate[bot] in TestableIO/System.IO.Abstractions#1373 * chore(deps): update dependency benchmarkdotnet to 0.15.7 by @renovate[bot] in TestableIO/System.IO.Abstractions#1374 * chore(deps): update dependency publicapigenerator to 11.5.1 by @renovate[bot] in TestableIO/System.IO.Abstractions#1375 * chore(deps): update actions/checkout action to v6 by @renovate[bot] in TestableIO/System.IO.Abstractions#1376 * fix: file stream sharing by @HarrisonTCodes in TestableIO/System.IO.Abstractions#1363 * chore(deps): update dependency awexpect to 2.29.0 by @renovate[bot] in TestableIO/System.IO.Abstractions#1358 * chore(deps): update dependency awexpect.testably to 0.13.0 by @renovate[bot] in TestableIO/System.IO.Abstractions#1360 * chore: bump aweXpect to v2.29.0 by @vbreuss in TestableIO/System.IO.Abstractions#1379 ## New Contributors * @HarrisonTCodes made their first contribution in TestableIO/System.IO.Abstractions#1349 **Full Changelog**: TestableIO/System.IO.Abstractions@v22.0.16...v22.1.0 Commits viewable in [compare view](TestableIO/System.IO.Abstractions@v22.0.16...v22.1.0). </details> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Updated [System.IO.Abstractions.TestingHelpers](https://github.com/TestableIO/System.IO.Abstractions) from 22.0.16 to 22.1.0. <details> <summary>Release notes</summary> _Sourced from [System.IO.Abstractions.TestingHelpers's releases](https://github.com/TestableIO/System.IO.Abstractions/releases)._ ## 22.1.0 ## What's Changed * chore(deps): update dependency awexpect to 2.24.0 by @renovate[bot] in TestableIO/System.IO.Abstractions#1341 * chore(deps): update dependency benchmarkdotnet to 0.15.3 by @renovate[bot] in TestableIO/System.IO.Abstractions#1342 * chore(deps): update dependency awexpect to 2.25.0 by @renovate[bot] in TestableIO/System.IO.Abstractions#1343 * chore(deps): update dependency benchmarkdotnet to 0.15.4 by @renovate[bot] in TestableIO/System.IO.Abstractions#1344 * chore(deps): update dependency awexpect to 2.26.0 by @renovate[bot] in TestableIO/System.IO.Abstractions#1345 * chore(deps): update dependency nunit3testadapter to 5.2.0 by @renovate[bot] in TestableIO/System.IO.Abstractions#1348 * docs: removed erroneous content from Testably section in README by @HarrisonTCodes in TestableIO/System.IO.Abstractions#1349 * fix: make invalid UNC path error message platform-specific by @HarrisonTCodes in TestableIO/System.IO.Abstractions#1351 * chore(deps): update dependency sharpcompress to 0.41.0 by @renovate[bot] in TestableIO/System.IO.Abstractions#1352 * chore(deps): update dependency publicapigenerator to 11.5.0 by @renovate[bot] in TestableIO/System.IO.Abstractions#1353 * chore(deps): update dependency system.text.json to 9.0.10 by @renovate[bot] in TestableIO/System.IO.Abstractions#1354 * chore(deps): update dependency dotnet-sdk to v9.0.306 by @renovate[bot] in TestableIO/System.IO.Abstractions#1355 * chore(deps): update mcr.microsoft.com/vscode/devcontainers/dotnet docker tag to v10 by @renovate[bot] in TestableIO/System.IO.Abstractions#1357 * chore(deps): update github artifact actions (major) by @renovate[bot] in TestableIO/System.IO.Abstractions#1359 * chore(deps): update dependency nunit.analyzers to 4.11.0 by @renovate[bot] in TestableIO/System.IO.Abstractions#1362 * chore(deps): update dependency benchmarkdotnet to 0.15.5 by @renovate[bot] in TestableIO/System.IO.Abstractions#1364 * chore(deps): update dependency nunit.analyzers to 4.11.1 by @renovate[bot] in TestableIO/System.IO.Abstractions#1365 * chore(deps): update dependency nunit.analyzers to 4.11.2 by @renovate[bot] in TestableIO/System.IO.Abstractions#1366 * chore(deps): update dependency benchmarkdotnet to 0.15.6 by @renovate[bot] in TestableIO/System.IO.Abstractions#1367 * chore(deps): update dependency system.text.json to v10 by @renovate[bot] in TestableIO/System.IO.Abstractions#1369 * chore(deps): update dependency dotnet-sdk to v9.0.307 by @renovate[bot] in TestableIO/System.IO.Abstractions#1368 * chore(deps): update dependency testably.abstractions.filesystem.interface to v10 by @renovate[bot] in TestableIO/System.IO.Abstractions#1372 * feat: add support for .NET 10 by @vbreuss in TestableIO/System.IO.Abstractions#1370 * chore(deps): update dependency system.text.json to v10 by @renovate[bot] in TestableIO/System.IO.Abstractions#1373 * chore(deps): update dependency benchmarkdotnet to 0.15.7 by @renovate[bot] in TestableIO/System.IO.Abstractions#1374 * chore(deps): update dependency publicapigenerator to 11.5.1 by @renovate[bot] in TestableIO/System.IO.Abstractions#1375 * chore(deps): update actions/checkout action to v6 by @renovate[bot] in TestableIO/System.IO.Abstractions#1376 * fix: file stream sharing by @HarrisonTCodes in TestableIO/System.IO.Abstractions#1363 * chore(deps): update dependency awexpect to 2.29.0 by @renovate[bot] in TestableIO/System.IO.Abstractions#1358 * chore(deps): update dependency awexpect.testably to 0.13.0 by @renovate[bot] in TestableIO/System.IO.Abstractions#1360 * chore: bump aweXpect to v2.29.0 by @vbreuss in TestableIO/System.IO.Abstractions#1379 ## New Contributors * @HarrisonTCodes made their first contribution in TestableIO/System.IO.Abstractions#1349 **Full Changelog**: TestableIO/System.IO.Abstractions@v22.0.16...v22.1.0 Commits viewable in [compare view](TestableIO/System.IO.Abstractions@v22.0.16...v22.1.0). </details> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>



This PR adds support for .NET 10 to the System.IO.Abstractions library by updating target frameworks, SDK versions, and package dependencies across the entire project.
Key Changes