Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASP.​NET Core in .NET 6 - CSS isolation for MVC Views and Razor Pages #168

Open
utterances-bot opened this issue Dec 7, 2021 · 7 comments

Comments

@utterances-bot
Copy link

ASP.​NET Core in .NET 6 - CSS isolation for MVC Views and Razor Pages

https://asp.net-hacker.rocks/2021/05/10/aspnetcore6-08-css-isolation.html

Copy link

This does not appear to work in net6. Even on initial render, the elements are missing the unique attributes
dotnet/aspnetcore#33446

Copy link

Regarding my comment above, it does work until you enable Razor runtime compilation via AddRazorRuntimeCompilation().

@JuergenGutsch
Copy link
Owner

Hi @safarviktor
Awesome. Thanks. That's good to know.
As far as I recognized, it is active by default on every new project

Copy link

Is it possible to have this on the .NET framework 4.7.2?

@JuergenGutsch
Copy link
Owner

Hi @JoeyManCan
It is only available in ASP.NET Core.

In .NET Framework, it would need to rewrite the view engine as well as the CSS bundler. Since ASP.NET on .NET Framework is no longer maintained, it won't be added there.

@JoeyManCan
Copy link

JoeyManCan commented Feb 10, 2022 via email

@JuergenGutsch
Copy link
Owner

Of course, if you would rewrite the view engine you could do that :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants