title: Using ToastNotificationManager in .Net5.0
body: <p>I was using the following code to show a Windows 10 Toast notifications from a .NetCore 3.1 console application, where I was using objects from the following namespaces: <code>Windows.UI.Notifications</code> &amp; <code>Windows.Data.Xml.Dom</code>, in .Net5.0 these namespaces seem to be moved to somewhere else.</p>
  <pre><code> public void GenerateToast(string appid, string imageFullPath, string h1, string h2, string p1)
          {
              try
              {
  
                  var template = ToastNotificationManager.GetTemplateContent(ToastTemplateType.ToastImageAndText04);
  
                  var textNodes = template.GetElementsByTagName(&quot;text&quot;);
  
                  textNodes[0].AppendChild(template.CreateTextNode(h1));
                  textNodes[1].AppendChild(template.CreateTextNode(h2));
                  textNodes[2].AppendChild(template.CreateTextNode(p1));
  
                  if (File.Exists(imageFullPath))
                  {
                      XmlNodeList toastImageElements = template.GetElementsByTagName(&quot;image&quot;);
                      ((XmlElement)toastImageElements[0]).SetAttribute(&quot;src&quot;, imageFullPath);
                  }
                  IXmlNode toastNode = template.SelectSingleNode(&quot;/toast&quot;);
                  ((XmlElement)toastNode).SetAttribute(&quot;duration&quot;, &quot;long&quot;);
  
                  var notifier = ToastNotificationManager.CreateToastNotifier(appid);
                  var notification = new ToastNotification(template);
  
                  notifier.Show(notification);
              }
              catch (Exception)
              {
                  // Ignore
              }
          }
  </code></pre>
  <p><strong>How to get back these namespaces?</strong></p>