https://github.com/physer/microtemplate
A .NET solution template for microservices in C#
https://github.com/physer/microtemplate
clean-architecture csharp dotnet microservices visual-studio visual-studio-template
Last synced: 19 days ago
JSON representation
A .NET solution template for microservices in C#
- Host: GitHub
- URL: https://github.com/physer/microtemplate
- Owner: Physer
- License: apache-2.0
- Created: 2023-02-22T12:01:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-25T18:56:53.000Z (over 1 year ago)
- Last Synced: 2025-02-25T19:35:41.014Z (over 1 year ago)
- Topics: clean-architecture, csharp, dotnet, microservices, visual-studio, visual-studio-template
- Language: C#
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Microtemplate
A Visual Studio solution template for microservices in .NET/C#.
The template creates project targetting .NET 9.
## Introduction
This is a multi-project solution template for Visual Studio to quickly scaffold a microservice based on [Clean Architecture](https://jasontaylor.dev/clean-architecture-getting-started/).
You can add this template to your Visual Studio templates and use it as a starting point for creating a new Microservice without repeating yourself.
## How to use
1. Download the latest `Microtemplate.zip` file from the [Releases page](https://github.com/Physer/Microtemplate/releases)
2. Place the ZIP file in your Visual Studio user data location: `%USERPROFILE%\Documents\Visual Studio 2022\Templates\ProjectTemplates`
3. If Visual Studio was open, restart it
4. You can now create a new project using the `Microtemplate` project template
## Architecture overview
This template uses Clean Architecture for its solution and project structure.
There are 5 projects created with this solution:
1. Domain (Core)
2. Persistence (Infrastructure)
3. UnitTests (Tests)
4. IntegrationTests (Tests)
5. Web (Presentation)

© Jason Taylor
## Used libraries and frameworks
- Entity Framework
- XUnit
- NSubstitute
- Shouldly
- Microsoft.AspNetCore.Mvc.Testing
## References
- https://learn.microsoft.com/en-us/visualstudio/ide/creating-project-and-item-templates?view=vs-2022
- https://jasontaylor.dev/clean-architecture-getting-started/