Skip to content

Upgrade to .NET 10 LTS and System.Management.Automation 7.6.1 #61

@MariusStorhaug

Description

Context

PR #45 initially targeted .NET 10.0\ and \System.Management.Automation 7.6.1\ as part of the Sodium hardening effort. However, these upgrades were reverted to .NET 8.0\ and \7.4.7\ due to compatibility issues with the native interop layer during the DllImport → LibraryImport source-generator migration.

Request

Upgrade the PSModule.Sodium project to leverage the latest stable versions:

  • .NET 10.0 (latest LTS)
  • System.Management.Automation 7.6.1 (latest stable)

These are now mature and should support LibraryImport source generators without the issues encountered in PR #45.

Technical Context

The previous attempt (PR #45, commit 9326f7c) revealed compatibility concerns with:

  • LibraryImport attribute and source-generator marshalling interoperability
  • Native DLL loading paths under .NET 10.0
  • Buffer marshalling and safety guarantees in the newer runtime

Acceptance Criteria

  • Project file targets .NET 10.0\
  • System.Management.Automation updated to \7.6.1\
  • All native interop (LibraryImport) methods compile and run correctly
  • Unit tests pass on Windows, Linux, and macOS
  • Performance benchmarks match or exceed the .NET 8.0 baseline
  • No regressions in error handling or validation

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .NET codeBlockedWork is blocked by an external dependency or platform limitationFeature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions