title: why RenderPage is not recognized?
body: <p>This is discouraging me - I'm using the latest version of .NET core, SDK, visual studio 2019,
  Started new project - ASP.net core Razor pages, I'm tring to add <code>@RenderPage(&quot;&quot;)</code> without success.</p>
  <p>It looks like it is not part of abstract class RazorPage (that inherit RazorPageBase, at the Microsoft.AspNetCore.Mvc.Razor namespace (part of dotnet\packs\Microsoft.AspNetCore.App.Ref\3.1.3\ref\netcoreapp3.1\Microsoft.AspNetCore.Mvc.Razor.dll))</p>
  <p>Everything I try, there is an error that says:</p>
  <blockquote>
  <p>Error  CS0103  The name 'RenderPage' does not exist in the current context</p>
  </blockquote>
  <p>my _Layout page looks like this:</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
      &lt;meta charset=&quot;utf-8&quot; /&gt;
      &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;
      &lt;title&gt;@ViewData[&quot;Title&quot;] - TestApp&lt;/title&gt;
      @*&lt;link rel=&quot;stylesheet&quot; href=&quot;~/lib/bootstrap/dist/css/bootstrap.min.css&quot; /&gt;*@
      &lt;link rel=&quot;stylesheet&quot; href=&quot;~/css/site.css&quot; /&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div&gt;
          @RenderPage(&quot;/Shared/_MenubarPage&quot;)
      &lt;/div&gt;
      &lt;div class=&quot;container&quot;&gt;
  
          
          &lt;main role=&quot;main&quot; class=&quot;pb-3&quot;&gt;
              @RenderBody()
          &lt;/main&gt;
      &lt;/div&gt;
  
      &lt;script src=&quot;~/lib/jquery/dist/jquery.min.js&quot;&gt;&lt;/script&gt;
      &lt;script src=&quot;~/lib/bootstrap/dist/js/bootstrap.bundle.min.js&quot;&gt;&lt;/script&gt;
      &lt;script src=&quot;~/js/site.js&quot; asp-append-version=&quot;true&quot;&gt;&lt;/script&gt;
  
      @RenderSection(&quot;Scripts&quot;, required: false)
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>(Of course I have partial _MenubarPage.cshtml page within Shared folder)</p>
  <p>Can anyone please tell me where am I doing wrong? Should I add some kind of an external nuget?</p>