aspnetcore: CSS isolation error when Blazor component Nuget packaged
@mkArtakMSFT I’m facing one more issue related to CSS. The above mentioned isolated CSS was working with WebAssembly projects when Razor Class Library project was referenced directly. But when it is packaged to Nuget and used via Nuget package not directly from project reference. Got this error:
Severity Code Description Project File Line Suppression State
Error The scoped css file 'C:\Users\Major\.nuget\packages\majorsoft.blazor.components.loading\0.9.1-rc.1.20452.10\contentFiles\any\net5.0\LoadingPage.razor.css' was defined but no associated razor component was found for it. Blazor.Components.TestApp (Samples\Blazor.Components.TestApp) C:\Program Files\dotnet\sdk\5.0.100-rc.1.20452.10\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Microsoft.NET.Sdk.Razor.ScopedCss.targets 97
_Originally posted by @majorimi in https://github.com/dotnet/aspnetcore/issues/26144#issuecomment-697930110_
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (9 by maintainers)
I can confirm that this issue was fixed with .NET5 RC2 update. Thanks.