'why CSS isolation disable when add RazorRuntimeCompilation in .net 6

I create new .net 6 web application and CSS isolation work fine but when I add this line of code builder.Services.AddRazorPages().AddRazorRuntimeCompilation(); to my Program.cs all CSS isolation styles will disable automatically. What should I do? I found this post Problem with CSS Isolation when I use AddRazorRuntimeCompilation but it not work for me.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source