-
-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EntryPointNotFoundException when instantiating a TaskDialog #23
Comments
Thanks for reporting this @Pogodaanton. I can reproduce the error you're seeing and I'll update the documentation with the information below. The internal error message is
To resolve this error, you'll need to add an application manifest to your .NET Core 3.1 WPF App in order to specify that your app has a dependency on Right click your project in Visual Studio -> Add -> New Item... and select "Application Manifest File (Windows Only)" That will create a template that you can customize and delete the parts you don't want and/or uncomment the parts that you want. The crucial part is the <?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly> Please, let me know if this works for you and if you find any other issue. |
Works flawlessly, thanks! |
I followed the sample from Ookii.Dialogs.Wpf.Sample for instantiating a TaskDialog in a .NET Core 3.1 Application.
The dialog fails to open and throws the following exception:
Not sure whether it helps but by commenting out line-by-line I could pinpoint the root of the cause to
TaskDialogButton
.The text was updated successfully, but these errors were encountered: