title: .Net Core looking through Views instead of Pages
body: <p>My project is targeting .NET Core 2.1. I migrated from Framework and thus changed from Razor Views to Pages. The pages seem to be working normally when you access the whole URL (Controller/View), but when I tried to create a landing page for requesting the root address, my Page is not found. Seems as if MVC is looking through the wrong directory.</p>
  
  <p>Error in question is:</p>
  
  <blockquote>
    <p>InvalidOperationException: The view 'Index' was not found. The following locations were searched: /Views/Main/Index.cshtml /Views/Shared/Index.cshtml /Pages/Shared/Index.cshtml</p>
  </blockquote>
  
  <p>My code for the route is just:</p>
  
  <pre><code>route.MapRoute("root", "", new
      { controller = "Main", action = "Index" });
  </code></pre>
  
  <p>Hoping to find some pointers for this.</p>