title: Opening Outlook 365 window from WPF .Net Core app
body: <p>This question has been asked many items, but I wasn't able to find appropriate actual solution.</p>
  <p>I am developing WPF app using .Net Core 3.1 and need to open Outlook (365, 16.0.12827.20328) window with new email and attachments. The easiest way is using Interop.</p>
  <p>My code:</p>
  <pre><code>        Microsoft.Office.Interop.Outlook.Application oApp = new Microsoft.Office.Interop.Outlook.Application();
          MailItem oMsg = (MailItem)oApp.CreateItem(OlItemType.olMailItem);
  
          oMsg.Subject = &quot;subject&quot;;
          oMsg.BodyFormat = OlBodyFormat.olFormatHTML;
          oMsg.HTMLBody = &quot;body&quot;;
          oMsg.Attachments.Add(&quot;filepath&quot;, OlAttachmentType.olByValue, Type.Missing, Type.Missing);
  </code></pre>
  <p>For this I need Interop package. I tried installing nuget <strong>Microsoft.Office.Interop.Outlook</strong> and adding reference COM -&gt; Interop.Microsoft.Office.Interop.Outlook.</p>
  <p>In both scenarios I get error:
  <strong>System.IO.FileNotFoundException: 'Could not load file or assembly 'office, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'. The system cannot find the file specified.'</strong></p>
  <p>What do I have to do to solve the issue?
  And why I need version 15.0.0.0? Internet says that version 15 is for Outlook 2013.</p>