Skip to content

Toast notification from c++ app #3861

@ivan2007

Description

@ivan2007

Hi,
I have the following setup
c++ win32 app -> c++/cli netcore 3.1 -> wpf netcore 3.1

I am trying to send a toast notification from the wpf module but I get this exception
image

In my case Assembly.GetEntryAssembly() is always null but the code inside GetDisplayNameFromCurrentProcess doesn't manage it:
private static string GetDisplayNameFromCurrentProcess(Process process) { AssemblyTitleAttribute customAttribute = Assembly.GetEntryAssembly().GetCustomAttribute<AssemblyTitleAttribute>(); if (customAttribute != null) return customAttribute.Title; return process.ProcessName; }

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions