title: Using _ViewStart on areas for nested content
body: <p>I have a _ViewStart defining the master layout for my project (header, footer).</p>
  
  <p>In this project, I have several Areas. Every area has the same header and footer, plus its own side menu. For that, I created a _ViewStart on the root dir of that area. Here is the (simplified) code:</p>
  
  <p>/Views/_ViewStart.cshtml</p>
  
  <pre><code>@{
     Layout = "~/Views/Shared/_Layout.cshtml";
  }
  </code></pre>
  
  <p>/Views/Shared/_Layout.cshtml</p>
  
  <pre><code>    &lt;html&gt;
          &lt;div&gt;
              //header
          &lt;/div&gt;
          &lt;div&gt;
              @RenderBody
          &lt;/div&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>Area Foo -> /Areas/Foo/Views/_ViewStart.cshtml</p>
  
  <pre><code>@{
      Layout = "~/Views/Shared/_Layout.cshtml";
  }
  &lt;div class="row"&gt;
  &lt;div class="sidemenu"&gt;
      //default sidemenu for this area
  &lt;/div&gt;
  &lt;div&gt;
          @RenderBody()
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The page /Areas/Foo/Views/Bar/Index.cshtml won't render and I get this error:</p>
  
  <p><strong>CS0103: The name 'RenderBody' does not exist in the current context</strong></p>
  
  <p>How to achieve this kind of master page nesting?</p>