⚙️ [Maintenance]: Build now targets .NET 10 LTS with PowerShell 7.6.1#62
⚙️ [Maintenance]: Build now targets .NET 10 LTS with PowerShell 7.6.1#62Marius Storhaug (MariusStorhaug) wants to merge 3 commits into
Conversation
No Significant Changes DetectedThis PR does not contain changes to files that would trigger a new release:
Build, test, and publish stages will be skipped for this PR. If you believe this is incorrect, please verify that your changes are in the correct locations. |
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
No Significant Changes DetectedThis PR does not contain changes to files that would trigger a new release:
Build, test, and publish stages will be skipped for this PR. If you believe this is incorrect, please verify that your changes are in the correct locations. |
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
|
Blocking this PR pending GitHub-hosted runner image updates to PowerShell 7.6 LTS. Current runner images provide PowerShell 7.4.x, which cannot load the net10.0-targeted module assembly (System.Runtime, Version=10.0.0.0) during import/test/doc jobs. |
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
Sodium now builds against the latest stable .NET 10 LTS runtime and PowerShell SDK 7.6.1, aligning the module toolchain with current platform baselines for ongoing interop hardening and future release validation. The CI pipeline is also updated to recognise the native interop project directory as an important path so that changes there correctly trigger the build, test, and publish stages.
Changed: Build toolchain baseline
The
PSModule.Sodiumproject now targets.NET 10.0, and theSystem.Management.Automationdependency is updated to7.6.1. This keeps the module aligned with current PowerShell runtime expectations and removes the prior fallback to .NET 8-era SDK references.Changed: CI build trigger now includes
PSModule/The
PSModule/directory (which containsSodium.csprojandbuild.ps1) is now listed inImportantFilePatternsin.github/PSModule.yml. Previously, changes to the native interop project files were classified as non-important by the workflow defaults (^src/and^README\.md$), causing the build and test stages to be skipped entirely. Adding^PSModule/ensures those changes are treated as release-relevant and trigger the full pipeline.Technical Details
PSModule/Sodium.csproj:TargetFrameworkchanged fromnet8.0tonet10.0System.Management.Automationchanged from7.4.7to7.6.1PSModule/build.ps1to copy published artifacts frombin/Release/net10.0/<rid>/publish.ImportantFilePatternsto.github/PSModule.ymlwith the two default patterns (^src/,^README\.md$) plus the new^PSModule/pattern.