Skip to content

Using Ookii.Dialogs.TaskDialog in PowerShell 7 #97

@futuremotiondev

Description

@futuremotiondev

I've been able to get a lot of the controls working, but getting an error when calling $TaskDialog.ShowDialog():

Exception calling "ShowDialog" with "0" argument(s): "Unable to find an entry point named 'TaskDialogIndirect' in DLL 'comctl32.dll'."

This is mentioned in your README:

Ookii Dialogs leverages the components and visual styles of the Windows Common Controls library (comctl32.dll), and WPF applications targeting .NET Core 3.1 and/or .NET 5 must add an application manifest (app.manifest) to their projects with a reference to Microsoft.Windows.Common-Controls.
Without the application manifest, you'll get an error with a message similar to the below:
System.EntryPointNotFoundException: 'Unable to find an entry point named '...' in DLL 'comctl32.dll'.'

Is there any way to get this working in powershell by referencing Microsoft.Windows.Common-Controls?

Any help would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions