Skip to content

Unable to find type [System.Windows.Forms.DialogResult] #191

Open
@gqqnbig

Description

Describe the Bug

Because https://github.com/LeDragoX/Win-Debloat-Tools#cli-version-straight-to-debloat says scripts can run individully, I run src\scripts\Remove-Xbox.ps1.

My powershell reports error:

Unable to find type [System.Windows.Forms.DialogResult].
At D:\Win-Debloat-Tools\src\lib\ui\Show-MessageDialog.psm1:28 char:17
+     [OutputType([System.Windows.Forms.DialogResult])]
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Windows.Forms.DialogResult:TypeName) [], RuntimeException
    + FullyQualifiedErrorId : TypeNotFound

How to fix it?

Note, this is a brand new Windows 10.

How can this issue be reproduced?

consistent on my machine

Expected behavior?

No response

Operating System

Windows 10

Operating System Version

22H2

Logs

No response

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions