Where does .NET Core fit into the equation on web development?
I’m trying to learn some more about web development. I’ve been learning HTML and CSS for the front end and I’m familiar with C# for the back end. Say I don’t user blazer/razor pages. I decide to use React for the front end and use C# API’s to hit the database. Where would .NET core fit into this webpage?
7 Replies
Nowhere? If you're only using it for the backend then it doesn't need to factor into the front-end (webpage) at all
I wonder why this can be a question. Microsoft clearly has tutorials for many SPA frameworks and you just need to finish one of them, https://learn.microsoft.com/en-us/visualstudio/javascript/tutorial-asp-net-core-with-react?view=vs-2022
It would fit... in the API?
Like, the code that runs on the server
Okay that makes sense. So you could use .NET core for a desktop app as well? It’s not only for web development?
Sure
.NET is the underlying framework
Desktop, mobile, web backend, web frontend, CLI tools, anything and everything you need
.NET is broadly just "what C# runs on"
C# is a general purpose language