title: 'HttpRequest' does not contain a definition for 'Params'
body: <p>I'm using <strong>.NET Core 2.0.2</strong> to create an <strong>ASP.NET</strong> webapp in <strong>C#</strong>.</p>
  
  <p>Everytime I use <code>Request.Url</code> in my controllers, <code>dotnet run</code> outputs an error:</p>
  
  <blockquote>
    <p>error CS1061: 'HttpRequest' does not contain a definition for 'Url' and no extension method 'Url' accepting a first argument of type 'HttpRequest' could be found</p>
  </blockquote>
  
  <p>The same thing happens with <code>Request.Params</code>. Even though the <a href="https://msdn.microsoft.com/en-us/library/system.web.httprequest.params(v=vs.110).aspx" rel="noreferrer">.NET documentation</a> says there is a getter for the <code>Params</code> property.</p>
  
  <p>I managed to find a workaround for <code>Request.Url</code>: I use the <code>Request.GetUri()</code> method. However I couldn't find such a replacement for <code>Request.Params</code>.</p>
  
  <p>Here are my <code>using</code> statements:</p>
  
  <pre><code>using System;
  using System.Diagnostics;
  using area.Models;
  using Microsoft.AspNetCore.Identity;
  using System.Threading.Tasks;
  using Microsoft.ApplicationInsights.AspNetCore.Extensions;
  using Microsoft.AspNetCore.Mvc;
  using Tweetinvi;
  using Tweetinvi.Models;
  </code></pre>
  
  <p>Why am I getting those errors? Do you know a fix? Otherwise, do you have a workaround to get <code>Request.Params</code>?</p>