DEV Community

mohamed Tayel
mohamed Tayel

Posted on • Edited on

1

What is Clean Architecture: Part 6 - Structuring the Application Core with Visual Studio

In this demo, we’ll set up the solution and establish a basic structure in Visual Studio. Starting with a blank slate allows us to organize everything neatly from the beginning, ensuring a clean and maintainable architecture.

Step 1: Start with a Blank Solution

First, let’s create a blank solution. In Visual Studio, select the Blank Solution template.

Create a Blank Solution
Name the solution GloboTicket.TicketManagement and choose the directory where you want to save it.

Name and Save the Solution

Step 2: Organize the Solution Structure

Before we start coding, let’s prepare a few solution folders that will help keep the project organized. Begin by adding two main folders: one for the source code (src) and one for the tests (test).

Image description

Image description

Step 3: Organize the src folder

Add API, Core, and Infrastructure Folders

Under the src folder, we will further organize the solution by adding specific folders for the API, Core, and Infrastructure. This structure will ensure that our clean architecture principles are reflected in the solution layout.

This process sets up the foundation for a clean, well-organized project in Visual Studio, making it easier to adhere to clean architecture principles as you progress.

Finally, in the next steps, we'll be ready to add the actual projects into these folders, keeping the solution structure clean and manageable from the start.

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay