Stylesheets

<link rel="stylesheet" href="~/ProjectName.style.css" asp-append-version="true" /> Hello, there, can someone please explain me what this link is refering to. I used search across my whole project and there is no file with such name. I even checked for hiden files. Also when I launch an app and inspect a page on Chrome it will show me that this file was loaded and will show its contents(some css obv). It comes by default with MVC template in _Layout.cshtml file
4 Replies
Angius
Angius3d ago
~/ refers to the wwwroot directory ProjectName.style.css is probably automatically compiled from scoped CSS stylesheets So it doesn't physically exist in your project, it's generated during build
YourMajesty
YourMajestyOP3d ago
Yeah, but can I see it somewhere? Because if I change file name in the link, browser will give me 404 file not found So like for example, if I want to change resulting file's name, can I do it somewhere?
Sehra
Sehra3d ago
Views in ASP.NET Core MVC
Learn how views handle the app's data presentation and user interaction in ASP.NET Core MVC.
YourMajesty
YourMajestyOP3d ago
This is very helpful! Thanks a lot!

Did you find this page helpful?