✅ ASP.NET Web application (Framenetwork) with MVCs
hi, does anyone know how to connect the css file to a cshtml file in the project of the title?
20 Replies
What's "framenetwork"?
And you use a CSS stylesheet like... you normally would, in any other plain HTML + CSS application
For a
/wwwroot/styles/style.css
you would add a
into the header in your layout
Maybe add asp-append-version="true"
as well, for easy cache bustingi cant find the root folder tho
?
What do you mean?
Ah
It's the ancient one
whats the new one
Yeah, I'm no archaeologist, I have negative knowledge about the old MVC
The one without
(.NET Framework)
$newprojectWhen creating a new project, prefer using .NET over .NET Framework, unless you have a very specific reason to be using .NET Framework.
.NET Framework is now legacy code and only get security fix updates, it no longer gets new features and is not recommended.
https://cdn.discordapp.com/attachments/569261465463160900/899381236617855016/unknown.png
which one of them has mvcs
The one without
(.NET Framework)
ASP.NET Core Web App
Then it lets you choose between MVC, Razor Pages, WebAPI, etcwhat about this one
Yes, this one's MVC
u think i better use this one for my project?
As you can see, Model-View-Controller
If you want MVC, and don't want to be stuck in 2002, then sure
i think ill switch to it then
cant find anything about the ancient one on internet
omg bruh im gonna need to do everything frm scratch again now 😦
Some of the code can just be copy-pasted to the new project
No biggie
ok ill try thank u so much
do u mind if i add u and dm u later if i get stuck ?
I do mind, yes
Feel free to ping me here though
ok thx