English
Topic 2. Tools and the solution skeleton: .NET SDK, shared build settings, central package management, PostgreSQL in Docker and developer commands
Goal: install and check the development tools, create the Git repository and the .NET solution with the three backend projects, set up strict build settings shared by every project, start PostgreSQL in Docker and add a script with the everyday commands.
Where we are
This topic lays the foundation: an empty but strictly configured solution in which every later topic adds code (Fig. 2.1).
Fig. 2.1. What this topic creates
- Starting point: topic 1; a computer with Windows, macOS or Linux and administrator rights to install software.
- At the end of the topic
dotnet buildbuilds three empty projects with zero warnings under strict settings, PostgreSQL 18 runs in a container, and the first commit is in your repository.
Steps
- Install the tools — the .NET SDK · Node.js · Docker Desktop · PowerShell 7 · Git · an IDE · checking the versions
- The solution and projects — a Git repository ·
global.json· the solution file · three projects and their references ·.gitignore,.gitattributes - Shared build settings —
Directory.Build.props· warnings as errors and analyzers ·.editorconfig· central package management - A local database in Docker —
compose.yaml· starting and checking PostgreSQL · the EF Core tool - Developer commands — the
Run.ps1script · the first commit - Checkpoint — what must work, self-check questions and exercises
Materials
- Course slides, part 1, Architecture (slides "Build settings for every project" and "Developer commands")
global.json,Chatex.slnx,Directory.Build.props,Directory.Packages.propscompose.yaml,Run.ps1Docs/GettingStarted.md– prerequisites and configuration