Skip to content
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

Enable cmdlets for Windows PowerShell #3951

Merged
merged 6 commits into from
Dec 6, 2023

Conversation

msftrubengu
Copy link
Contributor

@msftrubengu msftrubengu commented Dec 5, 2023

  • 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 msftrubengu marked this pull request as ready for review December 5, 2023 17:59
@msftrubengu msftrubengu requested a review from a team as a code owner December 5, 2023 17:59
@msftrubengu msftrubengu merged commit e70c3f8 into microsoft:master Dec 6, 2023
8 checks passed
@msftrubengu msftrubengu deleted the winpwsh_oop branch April 19, 2024 22:14
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