title: How to add Mime Types in ASP.NET Core
body: <p>When developing an application using .NET Framework 4.6 (MVC4/5), I used to add custom mime types in the web.config file, like this (this is the actual mime types I need to add in my app):</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;system.webServer&gt;
    &lt;staticContent&gt;
      &lt;mimeMap fileExtension=".wasm" mimeType="application/wasm"/&gt;
      &lt;mimeMap fileExtension="xap" mimeType="application/x-silverlight-app"/&gt;
      &lt;mimeMap fileExtension="xaml" mimeType="application/xaml+xml"/&gt;
      &lt;mimeMap fileExtension="xbap" mimeType="application/x-ms-xbap"/&gt;
    &lt;/staticContent&gt;
  </code></pre>
  
  <p></p>
  
  <p>How can I replicate this behaviour in a .NET Core? Is it possible to do it the same way?</p>