I have a razor class library and blazor server that consumes this library, each component in RCL has own css, after reading documentation of microsoft ASP.NET Core Blazor CSS isolation I did the following:
- In my razor page of blazor server I added my component:
<MyComponent />
- In _Host page I added link for bundeling:
<link href="Blazor.Components.styles.css" rel="stylesheet">
.
After running the application I couldn't see the css of MyComponent.
Did I make something wrong? Can you give me some advice?. I read this page that follows the same approach but for Webassembly!.
Thanks.