Microsoft.WinGet.DSC/WinGetPackage
: The type initializer for '<Module>' threw an exception.
#5069
Labels
Command-Configure
Issue related to WinGet Configuration
DSC-Resource
Issue related to DSC Resources
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Brief description of your issue
The DSC module that comes with the
winget
cli is throwing an exception when run fromwinget configure
.This prevents the installation of
winget
packages through the DSC module.Steps to reproduce
Create a
configuration.dsc.yaml
file:Run
winget
Expected behavior
(Or "not in the described configuration state", depending)
Actual behavior
The command throws an exception during "type initialization", and does not test for the presence of the package.
By manually modifying the .psm1 file, the
Test()
method of theWinGetPackage
is not entered; the error occurs before then.The log file includes:
Environment
The text was updated successfully, but these errors were encountered: