css isolation not working after publish blazor wasm

Prathamesh Shende 401 Reputation points
2023-07-09T15:27:19.15+00:00

Hi,
I created a css isolation file for MainLayout.razor with is MainLayout.razor.css.
after publishing the project the css inside that css isolation is not working.

<link href="Stack.Client.styles.css" rel="stylesheet" /> I also added this into index.html file. so what is the issue?, I am using .net 7 framework.

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.