Skip to content

iissa-dev/DotNet-Project-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

.NET Clean Architecture Project Generator

This is a PowerShell script that helps you start a new .NET project quickly. It creates a folder structure based on Clean Architecture principles.

πŸš€ Features

  • Creates a Solution and 4 Projects (Api, Application, Domain, Infrastructure).
  • Organizes internal folders (Entities, Interfaces, DTOs, etc.).
  • Automatically installs essential NuGet Packages (EF Core, JWT, Swagger).
  • Sets up all Project References (Dependencies) correctly.

πŸ› οΈ How to Use

  1. Open PowerShell as Administrator.
  2. Copy the script into your PowerShell Profile (type notepad $PROFILE to open it).
  3. Run the command:
    New-CleanProject -ProjectName "YourProjectName"
  4. The script will build the entire structure for you in seconds.

πŸ—οΈ The Structure

  • Domain: Enterprise logic and Entities.
  • Application: Business logic, DTOs, and Interfaces.
  • Infrastructure: Database context, Identity, and Repositories.
  • Api: Controllers and Web configuration.

πŸ“ Prerequisites

  • .NET SDK (Version 8.0 or newer recommended).
  • PowerShell 5.1 or 7+.

πŸ“„ License

This project is open-source. Feel free to use and modify it!

About

Automate your .NET setup: Generates a Clean Architecture structure, installs essential NuGet packages, and sets up project references in seconds.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors