ASP.NET Vertical Slice Project Template - How To Start Easily

When we're building applications, we generally find patterns as we're progressing. Whether it's within the current app you're building or when you move on to the next app, you carry your learnings for what worked well and what didn't. We leverage design patterns and architectures we like and perhaps discard ones that didn't serve us well. So when it comes to building solutions leveraging vertical slices, I have an ASP.NET Core vertical slice project template that I love to use.

In this article, I'll detail why I made the vertical slice project template that I have, what it is, and how it works, as well as different ways to use it. There's code included in the article as well as a full GitHub solution that you can clone down. Let's jump into it!

Why Have a Vertical Slice Project Template? What's All The Hype?

Lately, the buzz around vertical slices and vertical slice architecture has been growing, and it's not without reason. This architectural paradigm is not only something I hold in high regard but also a methodology I find incredibly effective for iterative software delivery. The vertical slice approach has been gaining traction, possibly riding the wave of trendy tech topics, yet the conversations around it are valuable and eye-opening.

If you're not already on board with this, I'd recommend delving into some reading about vertical slices. You might also want to explore the architectural essence of vertical slices before venturing further. Much of my earlier content on plugins dovetails nicely with the vertical slice discourse we'll be plunging into. So, if you find either of these intriguing, it could be rewarding to explore the other side and see how they intermingle seamlessly.

While it could be a fleeting trend of the moment, the rise in discussions around this topic is still exciting for me. The tech community is vast with varied architectural philosophies and strategies for iterative changes. The ongoing dialogues around these differing perspectives are not only enriching but also a vital part of our collective learning journey!

This vertical slice project template is my response to some of the community asking for more. While I can continue to cover the architectural side of vertical slices as well as how to use vertical slices as a development paradigm, this felt necessary. This template, in spirit, is what I use when kicking off new projects.