Skip to content

Css Isolation for Asp.Net Core Web Application for .cshtml files #25713

@tanekim88

Description

@tanekim88

CSS isolation feature has been now implemented in .net 5 preview 8 for Blazor, and I confirmed it's working in Blazor.

However, it seems that css isolation feature is not working in traditional Asp.Net Core Web Application.
Is this feature being planned for the traditional Asp.Net Core Web Application?
If not, it would be great if it will be planned.

For example, if there is a Login.cshtml, and if I create Login.cshtml.css, I would like the content of Login.cshtml.css to be automatically injected into <style> portion of Login.cshtml.

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedUser StoryA single user-facing feature. Can be grouped under an epic.affected-mediumThis issue impacts approximately half of our customersarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesenhancementThis issue represents an ask for new feature or an enhancement to an existing oneseverity-majorThis label is used by an internal tool

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions