title: How to add .html url suffix to all Razor pages in ASP.NET Core 2?
body: <p>I have an ASP.NET Core 2.0 MVC app using Razor pages stored in the project tree under the /Pages folder.</p>
  
  <p>The project is set up using default routing etc.</p>
  
  <p>I would like to all the Razor pages to have .html extension in the browser's address bar.</p>
  
  <p>File /Pages/test.cshtml is currently available via <a href="http://localhost/test" rel="noreferrer">http://localhost/test</a>. I would like this page to be available via <a href="http://localhost/test.html" rel="noreferrer">http://localhost/test.html</a> instead.</p>
  
  <p>I tried to understand the routing settings but failed to understand it enough to come with the solution.</p>
  
  <p>What should I write where so the files are available via .html suffix?</p>