Menu

From empty folder to tested .NET solution in two commands
📰

From empty folder to tested .NET solution in two commands

DEV Community: dotnet·Domenico D'Uva·1 day ago
#tXFxp3ie
#devtodotnet#devto#dev#if#shop
Long article (1342 words) — no AI summary yet.
Reading 0:00
15s threshold

In my first post I said I wanted Vitreous to cover more of the setup a clean architecture project needs. Version 0.6.0 does that with two commands: one installs the templates, the other creates a layered solution that builds with no warnings and comes with 34 passing tests.

Underneath, dispatch got faster too. Sending a query takes about 90 ns and allocates nothing, whether its handler is the first or the 200th.

Two commands

I wanted to give people an easier way into Vitreous and into clean architecture, especially to try them in a new project:

dotnet new install Vitreous.Templates dotnet new vitreous-clean -n Shop

Enter fullscreen mode

Exit fullscreen mode

That creates four projects and their tests:

Shop/

src/ Shop.Domain/ Shop.Application/ Shop.Infrastructure/ Shop.Api/ tests/ Shop.Domain.Tests/ Shop.Application.Tests/ Shop.Architecture.Tests/ Shop.Api.Tests/

Enter fullscreen mode

Exit fullscreen mode

The domain has an Order aggregate with its value objects and events.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.