KMTS.Projects.Infrastructure
0.0.2-develop.2
dotnet add package KMTS.Projects.Infrastructure --version 0.0.2-develop.2
NuGet\Install-Package KMTS.Projects.Infrastructure -Version 0.0.2-develop.2
<PackageReference Include="KMTS.Projects.Infrastructure" Version="0.0.2-develop.2" />
<PackageVersion Include="KMTS.Projects.Infrastructure" Version="0.0.2-develop.2" />
<PackageReference Include="KMTS.Projects.Infrastructure" />
paket add KMTS.Projects.Infrastructure --version 0.0.2-develop.2
#r "nuget: KMTS.Projects.Infrastructure, 0.0.2-develop.2"
#:package KMTS.Projects.Infrastructure@0.0.2-develop.2
#addin nuget:?package=KMTS.Projects.Infrastructure&version=0.0.2-develop.2&prerelease
#tool nuget:?package=KMTS.Projects.Infrastructure&version=0.0.2-develop.2&prerelease
KMTS.Projects
A KMTS bounded-context library following the 5-layer DDD/CQRS pattern, built on top of
KMTS.Kernel. Scaffolded from the dotnet new kmts-lib
template — the single source of truth for KMTS library structure (D-01).
What this library is
KMTS.Projects packages one capability as four independently-versioned NuGet layers
(Domain, Application, Infrastructure, Presentation) plus an in-repo NetArchTest
boundary suite. A host application composes it via services.AddProjects().
Boundary rule
This library references only KMTS.Kernel.*. It must not reference any other KMTS.*
library, must not import WolverineFx (cross-library integration events flow only through
the Kernel seam), and must not use MediatR, Newtonsoft.Json, or Guid primary keys.
These rules are enforced at build time by tests/KMTS.Projects.ArchitectureTests and fail CI
on violation.
Layers
| Layer | Responsibility |
|---|---|
KMTS.Projects.Domain |
Entities (Ulid PKs), value objects, domain events, repository interfaces. No infrastructure. |
KMTS.Projects.Application |
CQRS handlers, validators, marker triad. Source-generated ISender via KMTS.Kernel.Generator. |
KMTS.Projects.Infrastructure |
EF Core configurations (schema projects), IProjectsDbContext, DbUp scripts, DI + decorator chain. |
KMTS.Projects.Presentation |
Minimal-API endpoints and the AddProjects() composition entry point. |
How to build
KMTS.Kernel.* is pinned to the 3.0.0-local line, which is not on nuget.org. It restores from
the private kmts-digital-solutions GitHub Packages feed, so export a PAT with read:packages
first -- without it restore fails with a 401 on that source:
export GITHUB_PACKAGES_TOKEN=<PAT with read:packages> # once per shell/profile
dotnet restore
dotnet build -c Release
dotnet test tests/KMTS.Projects.ArchitectureTests
All projects target net10.0 with all warnings treated as errors, AnalysisMode=All, and
EnforceCodeStyleInBuild. Persistence uses one schema per library (projects) with no
cross-schema joins; the host owns a single shared DbContext implementing IProjectsDbContext.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- FluentValidation (>= 12.1.0)
- FluentValidation.DependencyInjectionExtensions (>= 12.1.0)
- KMTS.Kernel.Application (>= 3.0.0-local.44)
- KMTS.Kernel.Domain (>= 3.0.0-local.44)
- KMTS.Kernel.Generator (>= 3.0.0-local.44)
- KMTS.Kernel.Infrastructure (>= 3.0.0-local.44)
- KMTS.Projects.Application (>= 0.0.2-develop.2)
- KMTS.Projects.Domain (>= 0.0.2-develop.2)
- Microsoft.EntityFrameworkCore (>= 10.0.0)
- Microsoft.EntityFrameworkCore.Abstractions (>= 10.0.0)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.0)
- Microsoft.Extensions.Caching.Hybrid (>= 10.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Options (>= 10.0.7)
- Scrutor (>= 7.0.0)
- System.Security.Cryptography.Xml (>= 10.0.10)
- Ulid (>= 1.4.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on KMTS.Projects.Infrastructure:
| Package | Downloads |
|---|---|
|
KMTS.Projects.Presentation
Presentation layer for KMTS.Projects - ASP.NET Core endpoints and the AddProjects() composition entry point. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.2-develop.2 | 69 | 9/3/2026 |