← Back to articles

ASP.NET Core MVC

The opening recipe in my ASP.NET Core series: setting up a clean MVC project as the foundation the rest of the recipes build on.

Tedd

I find myself throwing together web API’s and small web apps regularly for various purposes. Each project contains the same setup such as logging, managed config, api areas, api versioning, etc… Often I end up going into a previous project and copy-paste. I thought I would save myself a bit of time by documenting the process for each feature here.

For clarity I’m splitting the features into separate blog-posts, and I start it off by setting up a simple project so that anyone following the posts can start on the same page as me.

In this post we simply create the project which will be the basis for the following posts.

Illustration unavailable in the original archive.

Create project

Illustration unavailable in the original archive.Project is named differently than solution. Also trying to avoid naming project “Web”, “Console” or other words that will conflict with existing .Net/third-party namespaces. It’s not a big problem, but annoying when they collide.

Illustration unavailable in the original archive.

Illustration unavailable in the original archive.Run the project to see that ASP.NET Core MVC-pages are working properly.

Written by Tedd · Oslo, Norway

Updated 25 Jun 2019

Follow the journal via RSS