ASP.NET Core 8.0 Razor Pages: rewriting _Layout.cshtml.css => {application}.styles.css not found (404)
After making a new .NET8.0 Razor Pages (ASP.NET Core) project, I removed JQuery- and Bootstrap-Libraries. Then I edited _Layout.cshtml.css. When running the project, my CSS-rules are not applied, because my browser cannot load the stylesheet. The browser gets a 404 as result, when requesting {application}.styles.css.
Razor Pages: rewriting _Layout.cshtml.css => {application}.styles.css not found (404)
After making a new .NET8.0 Razor Pages (ASP.NET Core) project, I removed JQuery- and Bootstrap-Libraries. Then I edited _Layout.cshtml.css. When running the project, my CSS-rules are not applied, because my browser cannot load the stylesheet. The browser gets a 404 as result, when requesting {application}.styles.css.