Hi liubin,
你可以参照下面的步骤来在.net framework应用程序中来使用ToastNotification类。(这里以控制台应用程序为例)
1.右击项目选择卸载项目。
2.右击项目选择编辑项目文件。
3.把下面的代码加入到项目文件中,
<targetplatformversion>8.0</targetplatformversion>
4.右击项目,选择重新加载项目。
5.右击项目添加引用,在左侧选择windows,然后选择windows.UI和Windows.Data,点击确定。
6.最后加上以下代码:
using Windows.Data.Xml.Dom;
using Windows.UI.Notifications;
static void Main(string[] args)
{
XmlDocument doc = new XmlDocument();
ToastNotification toast = new ToastNotification(doc);
}
最后显示没有报错信息:

Best Regards,
Jack
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.