Open RobertoFalconi opened 2 years ago
Thanks for contacting us. This is because Runtime Compilation doesn't support Scoped CSS.
Reopening this and moving to backlog
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Is there an existing issue for this?
Describe the bug
I made a brand new .NET 6 project with VS22, I added Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation package (version 6.0.1) from NuGet to the project, then I have added in the Program.cs:
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllersWithViews().AddRazorRuntimeCompilation();
and the result is that Bootstrap' layout "crashes": the footer is no more fixed to the bottom of the page, the header doesn't have the shadow anymore and so on. It follows a screenshot of the crashed page:
Expected Behavior
This is what the page should look like instead:
Steps To Reproduce
Just make a brand new ASP.NET Core Web App (MVC) with .NET 6, with both HTTPS and Docker support:
We now have this:
Then install the Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation package (version 6.0.1) from NuGet to the project:
Finally the command AddRazorRuntimeCompilation();
And the result will be:
Exceptions (if any)
No response
.NET Version
.NET 6.0
Anything else?
ASP.NET Core 6 Visual Studio Professional 2022
Ask me for anything