DEV Community

mohamed Tayel
mohamed Tayel

Posted on • Updated on

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.

Top comments (0)