solution
A file (.sln or the newer .slnx) that groups related .NET projects, such as an API, its libraries and its tests, so they can be opened and built together.
In more detail
A project is the unit the build understands; the solution is only a map of projects. Build a single project for speed while editing, but build the whole solution in continuous integration to prove every reference still fits. dotnet sln add puts a project into a solution.
Examples
dotnet new sln -n Catalogdotnet sln add src/Catalog.ApiRelated terms
- project file — The XML file, such as Hello.csproj, that tells the build which SDK, target framework, packages and settings a project uses.
- dotnet build — The dotnet command that compiles a project or solution and its dependencies into assemblies.
- class library — A project that compiles to a .dll of reusable types with no entry point, referenced by applications and other libraries.
Taught in
- Solutions, Projects, and Target Frameworks — Modern .NET Core, C# & Enterprise Microservices
- Directory.Build.props, global.json and Central Packages — Modern .NET Core, C# & Enterprise Microservices
- Code Quality: .editorconfig and Roslyn Analyzers — Modern .NET Core, C# & Enterprise Microservices
- Integration Testing with WebApplicationFactory — Modern .NET Core, C# & Enterprise Microservices