title: Adding AddRazorRuntimeCompilation() to the container in .NET CORE 6 will break the CSS footer
body: <p>I create a brand new ASP.NET Core MVC project using VS 2022 and .NET Core 6.
  VS will generate the base template and when I run it without touching any code, everything is fine.</p>
  <p><a href="https://i.stack.imgur.com/Lf26B.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Lf26B.png" alt="enter image description here" /></a></p>
  <p>So far so good.</p>
  <p>Now I add the NuGet dependency <em>Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation</em> version 6.0.0.</p>
  <p>In <em>Program.cs</em> file, I add a line</p>
  <pre class="lang-java prettyprint-override"><code>// Add services to the container.
  builder.Services.AddControllersWithViews();
  builder.Services.AddRazorPages().AddRazorRuntimeCompilation(); //Add this line of code
  var app = builder.Build();
  </code></pre>
  <p>Rebuild the program and run it. Now I see the footer is not at the bottom of the page anymore.</p>
  <p>Is it a bug or did I do something wrong here?  Thanks.</p>
  <p><a href="https://i.stack.imgur.com/ZVm6L.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZVm6L.png" alt="enter image description here" /></a></p>