title: does HTTPResponse Response exist in .NET Core 3.1
body: <p>I'm trying to export data from an asp.net core webapplication (Blazor) to an excel file. Excel file has to show up in the browser, to be downloaded by the user.</p>
  <p>Per all the examples I use Response:</p>
  <pre><code>using System;
  using System.IO;
  using ClosedXML.Excel;
  using System.Data;
  using System.Web;
  using Microsoft.AspNetCore.Http;
  
  namespace Sxxx
  {
      public class Exporter
      {
          public void Export()
          {
              using (IXLWorkbook wb = new XLWorkbook())
              {
                  IXLWorksheet ws = wb.Worksheets.Add(&quot;Sample Sheet&quot;);
  
                  ws.Cell(1, 1).Value = &quot;Hello World!&quot;;
  
                  Response.Clear();
                  Response.Buffer = true;
                  Response.Charset = &quot;&quot;;
                  Response.ContentType = &quot;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet&quot;;
                  Response.AddHeader(&quot;content-disposition&quot;, &quot;attachment;filename=SqlExport.xlsx&quot;);
                  using (MemoryStream MyMemoryStream = new MemoryStream())
                  {
                      wb.SaveAs(MyMemoryStream);
                      MyMemoryStream.WriteTo(Response.OutputStream);
                      Response.Flush();
                      Response.End();
                  }
              }
                         
          }
      }
  </code></pre>
  <p>However Response is not recognized. The missing assembly that VS 2019 shows is &quot;Ubiety.Dns.Core&quot;, but that doesn't seem right.</p>
  <p>In docs.microsoft.com HTTPresponse only shows up as part of Framework 4.8, so my question: can I use Response here or do I need something else for a Core 3.1 project?</p>
  <p>Thanks in advance</p>