PowerShell module feedback - WinGet 1.5-preview(2) #2962
Replies: 4 comments 2 replies
-
(Get-WinGetSettings | convertfrom-json).adminsettings |
Beta Was this translation helpful? Give feedback.
-
No matter what command I run I get the error PS C:\> get-error -Last 1
Exception :
Type : System.TypeInitializationException
TypeName : Microsoft.WinGet.Client.Commands.Common.BaseClientCommand
TargetSite : System.Management.Automation.Cmdlet lambda_method206(System.Runtime.CompilerServices.Closure)
Message : The type initializer for 'Microsoft.WinGet.Client.Commands.Common.BaseClientCommand' threw an
exception.
InnerException :
Type : System.DllNotFoundException
Message : Unable to load DLL 'winrtact.dll' or one of its dependencies: The specified module could not be
found. (0x8007007E)
TargetSite :
Name : InitializeUndockedRegFreeWinRT
DeclaringType : Microsoft.WinGet.Client.Commands.Common.BaseClientCommand
MemberType : Method
Module : Microsoft.WinGet.Client.dll
Source : Microsoft.WinGet.Client
HResult : -2146233052
StackTrace :
at Microsoft.WinGet.Client.Commands.Common.BaseClientCommand.InitializeUndockedRegFreeWinRT()
at Microsoft.WinGet.Client.Commands.Common.BaseClientCommand..cctor() in
D:\a\_work\1\s\external\pkg\src\PowerShell\Microsoft.WinGet.Client\Commands\Common\BaseClientCommand.cs:line 23
Source : Anonymously Hosted DynamicMethods Assembly
HResult : -2146233036
StackTrace :
at lambda_method476(Closure)
at System.Management.Automation.CommandProcessor.Init(CmdletInfo cmdletInformation)
CategoryInfo : NotSpecified: (:) [], TypeInitializationException
FullyQualifiedErrorId : System.TypeInitializationException
InvocationInfo :
ScriptLineNumber : 1
OffsetInLine : 1
HistoryId : 6
Line : Get-WinGetSource
PositionMessage : At line:1 char:1
+ Get-WinGetSource
+ ~~~~~~~~~~~~~~~~
InvocationName : Get-WinGetSource
CommandOrigin : Internal
ScriptStackTrace : at <ScriptBlock>, <No file>: line 1 Running Windows 10 21H2 and PowerShell 7.3.2. |
Beta Was this translation helpful? Give feedback.
-
Did you include the latest version of the PowerShell module with https://github.com/microsoft/winget-cli/releases/tag/v1.5.441-preview ? The module manifest shows v0.0.1 from last July, and it looks like a Crescendo module. |
Beta Was this translation helpful? Give feedback.
-
In hindsight, there might be those that might want to use it with |
Beta Was this translation helpful? Give feedback.
-
Here is a new thread to discuss the current state of the PowerShell module.
https://github.com/microsoft/winget-cli/releases/tag/v1.5.441-preview
TODO:
Determine the correct timing to publish to PowerShell gallery"-alpha" publishedBeta Was this translation helpful? Give feedback.
All reactions