Skip to main content

Command Palette

Search for a command to run...

Folder Structures in .NET Projects: A Comprehensive Guide

Updated
1 min read
T

I am a dedicated software engineer with a deep passion for security and a commitment to developing robust and scalable solutions. With over three years of hands-on experience in the .NET ecosystem, I have built, maintained, and optimized various software applications, demonstrating my ability to adapt to diverse project needs. In addition to my expertise in .NET, I have six months of specialized experience working with Spring Boot and ReactJS, further broadening my skill set to include full-stack development and modern web technologies. My professional journey includes deploying small to medium-sized systems to cloud platforms and on-premises environments, where I have ensured reliability, scalability, and efficient resource utilization. This combination of skills and experience reflects my versatility and commitment to staying at the forefront of the ever-evolving tech landscape.

  1. Basic ASP.NET MVC Project

/Controllers/
    HomeController.cs
/Models/
    Product.cs
    Order.cs
/Views/
    /Home/
        Index.cshtml
    /Shared/
        _Layout.cshtml
/Services/
    OrderService.cs
/DataAccess/
    ProductRepository.cs
  1. Feature-Based Project

/Features/
    /Products/
        Models/
            Product.cs
        Controllers/
            ProductController.cs
        Views/
            ProductView.cshtml
        Services/
            ProductService.cs
    /Orders/
        Models/
            Order.cs
        Controllers/
            OrderController.cs
        Views/
            OrderView.cshtml
        Services/
            OrderService.cs
  1. DDD Project Structure

/Domain/
    /Products/
        Product.cs
        ProductService.cs
        ProductRepository.cs
    /Orders/
        Order.cs
        OrderService.cs
        OrderRepository.cs
/Infrastructure/
    /Persistence/
        DatabaseContext.cs
    /Repositories/
        ProductRepository.cs
/Application/
    /Commands/
        CreateProductCommand.cs
    /Queries/
        GetProductByIdQuery.cs
128 views

More from this blog

Tuan Do's Blog

37 posts

The blog acts like a personal notebook for jotting down thoughts