ookii-dialogs-wpf icon indicating copy to clipboard operation
ookii-dialogs-wpf copied to clipboard

Using Ookii.Dialogs.TaskDialog in PowerShell 7

Open futuremotiondev opened this issue 3 years ago • 1 comments
trafficstars

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!

futuremotiondev avatar Apr 05 '22 19:04 futuremotiondev

@visusys I have no answer 'cause I'm still stuck at using Ookii.Dialogs.WinForms in powershell.....How didi u do ?

LewisAlex avatar Mar 02 '23 20:03 LewisAlex