© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
2 replies
KamiGami02

❔ "BLAZOR102: The scoped css file '~\Layout.cshtml.css' was defined but..." How do I fix this error?

I've been messing around with ASP.NET and trying to make a new web app, originally I was having issues trying to include a Scripts folder for my javascripting needs, that's when I started trying to learn about Static Files in the wwwroot.

Added this line in my property group for the csproj, <EnableDefaultContentItems>false</EnableDefaultContentItems>
And suddenly, it crashed.
When I remove it, it throws a separate error for two versions of favicon.ico with "incompatible asset kinds".

Help, please?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Changes to _Layout.cshtml.css not showing
C#CC# / help
4y ago
✅ how do i fix this?
C#CC# / help
2y ago
✅ How do i fix this?
C#CC# / help
4y ago
HI how do I fix this
C#CC# / help
4y ago