Skip to content

Add Rust COM bridge for Windows PowerShell#9

Merged
Marc-André Moreau (mamoreau-devolutions) merged 3 commits into
masterfrom
mamoreau-devolutions/com-interfaces
Apr 28, 2026
Merged

Add Rust COM bridge for Windows PowerShell#9
Marc-André Moreau (mamoreau-devolutions) merged 3 commits into
masterfrom
mamoreau-devolutions/com-interfaces

Conversation

@mamoreau-devolutions
Copy link
Copy Markdown
Contributor

Summary

  • Add a Windows-only pinget-com Rust native COM bridge backed by pinget-core.
  • Add a net48 C# COM interop layer and Windows PowerShell module path while keeping PowerShell 7 on the pure .NET stack.
  • Package Desktop/Core module layouts, trim SQLite runtime assets, and place pinget-com.dll under Desktop\net48\runtimes\win-*\native.
  • Align dependency install behavior so dependencies are not forced and use silent/no-upgrade semantics.
  • Bump Pinget version metadata to 0.2.0 and include pinget-com in the version bump script.

Validation

  • dotnet build dotnet\Devolutions.Pinget.slnx -c Release
  • pinget.exe --version -> pinget v0.2.0
  • cargo check -p pinget-cli
  • cargo check -p pinget-com
  • Windows PowerShell Pester suite: 13/13 passed
  • PowerShell 7 Pester suite: 13/13 passed

Workflow runs

Expose the Rust Pinget core through a registration-free native COM bridge and add a net48 PowerShell module path for Windows PowerShell. Package native COM assets by Windows RID, trim module runtimes, and keep CI/release workflows building both COM architectures.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Ensure CI and release dry-run jobs build the Rust COM DLLs before RunTests packages the PowerShell module with -NoBuild.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Update version metadata with scripts/Set-PingetVersion.ps1 and include the new pinget-com crate in future version bumps.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mamoreau-devolutions Marc-André Moreau (mamoreau-devolutions) merged commit 5d85ff7 into master Apr 28, 2026
4 checks passed
@mamoreau-devolutions Marc-André Moreau (mamoreau-devolutions) deleted the mamoreau-devolutions/com-interfaces branch April 28, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant