dotnet / dotnet/aspnetcore

Runtime compilation does not work with scoped CSS

Open
#41,193 9 comments 2 reactions 0 assignees View on GitHub
area-mvc bug feature-runtime-compilation
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

**Repro Steps**
1. File > New project > ASP.NET Core Web App > .NET 6.0 > None
2. Install the package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation in Manage NuGet Packages
3. Open Program.cs, add .AddRazorRuntimeCompilation() to the 4 line
builder.Services.AddRazorPages().AddRazorRuntimeCompilation();
4. Run the project (F5) and verify you get the default page shows up in the browser

**Actual Result**
![image](https://user-images.githubusercontent.com/78580199/163371645-4e9642ec-57cd-4a78-bcc6-773e83911c01.png)

**Expected**
![image](https://user-images.githubusercontent.com/14852843/163452686-c81bbf00-c23d-46e4-9b35-156ed3faad7e.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.