I am trying to implement the Microsoft UWP notification system in my C++ program, but I am encountering a problem. I followed the procedure on the Microsoft site: Send a local toast notification from C++ UWP apps
But when adding namespaces ;
using namespace Microsoft::Toolkit::Uwp::Notifications;
the namespace is unfindable, even after added NuGet package "Microsoft.Toolkit.Uwp.Notifications".
After adding the NuGet package "Microsoft.Toolkit.Uwp.Notifications", when I add the namespaces declaration in my C++ program, I get the error Error (active) E0276 name followed by '::' must be a class or namespace. It's as if the namespaces couldn't be found.
Has anyone encountered this problem before, or have any ideas?

Visual Studio cannot find the namespace, please add the header file in your pch.h file.