Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

::Deep with SASS + VS 2022 + Blazor = Only Allowed in filenames ending with .razor.css or cshtml.cs Warning

I am using sass with my blazor application and using "DartSassBuilder" so I have something like this

Add.razor
  Add.razor.scss
    Add.razor.css

Now in my "scss" file I have

::deep .search-btn {
   margin-left: 10px;
}

Which gives me this warning

:deep is only allowed in file names ending with ".razor.css" or .cshtml.css"

I see it in the .css file it gets rendered to

::deep .search-btn {margin-left: 10px;}

So it should work fine but wondering how I can get rid of the warning.

like image 554
chobo2 Avatar asked Dec 05 '25 13:12

chobo2


1 Answers

This was an issue in VS. I updated from 17.9.0 to 17.9.2 and it is fixed.

like image 165
Kirsten Avatar answered Dec 09 '25 13:12

Kirsten



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!