Skip to content

Enable cmdlets for Windows PowerShell - #3951

Merged
Ruben Guerrero (msftrubengu) merged 6 commits into
microsoft:masterfrom
msftrubengu:winpwsh_oop
Dec 6, 2023
Merged

Ruben Guerrero (msftrubengu) merged 6 commits into
microsoft:masterfrom
msftrubengu:winpwsh_oop

Conversation

@msftrubengu

@msftrubengu Ruben Guerrero (msftrubengu) commented Dec 5, 2023 •

Copy link
Copy Markdown
Contributor
  • Enable the following cmdlets for Windows PowerShell on user context.
    • Find-WinGetPackage
    • Get-WinGetPackage
    • Install-WinGetPackage
    • Uninstall-WinGetPackage
    • Update-WinGetPackage
    • Get-WinGetSource
  • Move WinGetAssemblyLoadContext.cs as common code between the modules.
  • Implement AppDomain handler for the current AppDomain for module's dependencies. However, dependency conflicts can still occur. In order to fix it, one should implement a custom app domain and deal with the serialization boundaries.
  • WinRTHelpers is a static class to handle all native calls. Since AppDomain doesn't have something similar to LoadUnmanagedDll, a call to SetDllDirectoryW is needed before calling the native method.
Microsoft Reviewers: Open in CodeFlow

@msftrubengu
Ruben Guerrero (msftrubengu) marked this pull request as ready for review December 5, 2023 17:59
@msftrubengu
Ruben Guerrero (msftrubengu) requested a review from a team as a code owner December 5, 2023 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants