Cms.BuildingBlocks.Domain 2.0.0-alpha.35

This is a prerelease version of Cms.BuildingBlocks.Domain.
dotnet add package Cms.BuildingBlocks.Domain --version 2.0.0-alpha.35
                    
NuGet\Install-Package Cms.BuildingBlocks.Domain -Version 2.0.0-alpha.35
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cms.BuildingBlocks.Domain" Version="2.0.0-alpha.35" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cms.BuildingBlocks.Domain" Version="2.0.0-alpha.35" />
                    
Directory.Packages.props
<PackageReference Include="Cms.BuildingBlocks.Domain" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Cms.BuildingBlocks.Domain --version 2.0.0-alpha.35
                    
#r "nuget: Cms.BuildingBlocks.Domain, 2.0.0-alpha.35"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Cms.BuildingBlocks.Domain@2.0.0-alpha.35
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Cms.BuildingBlocks.Domain&version=2.0.0-alpha.35&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Cms.BuildingBlocks.Domain&version=2.0.0-alpha.35&prerelease
                    
Install as a Cake Tool

Cms.BuildingBlocks.Domain

Pure Domain Building Blocks for .NET applications using DDD, Clean Architecture, and SOLID.

NuGet Downloads License

Features

  • AggregateRoot base with versioning support
  • OwnedAggregateRoot for user / tenant owned aggregates
  • Entity base with built-in Domain Events and Equality by ID
  • Strongly-typed Entity IDs
  • Value Objects
  • Result Pattern for explicit error handling
  • Standard Repositories & UnitOfWork
  • Domain Errors & Guard Clauses
  • Audit-friendly abstractions
  • Zero infrastructure dependencies

Installation

dotnet add package Cms.BuildingBlocks.Domain

Example (User-Owned Aggregate)

public sealed record CategoryId(Guid Value) : EntityId<Guid>(Value);
public sealed record UserId(Guid Value) : EntityId<Guid>(Value);

public sealed class Category
    : OwnedAggregateRoot<CategoryId, UserId>
{
    public CategoryName Name { get; private set; }
    public bool IsArchived { get; private set; }

    private Category(CategoryId id, UserId ownerId, CategoryName name)
    {
        Id = id;
        OwnerId = ownerId;
        Name = name;
    }

    public static Result<Category> Create(
        CategoryId id,
        UserId ownerId,
        CategoryName name)
    {
        // Guard clauses or manual checks
        if (string.IsNullOrWhiteSpace(name.Value))
            return Result.Failure<Category>(new DomainError("NameRequired"));

        var category = new Category(id, ownerId, name);
        category.Raise(new CategoryCreated(id, ownerId, DateTime.UtcNow));

        return category;
    }
}

Versioning

This package follows Semantic Versioning (SemVer):

  • MAJOR – breaking domain contracts
  • MINOR – new abstractions, backward compatible
  • PATCH – fixes and refactors

License

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Cms.BuildingBlocks.Domain:

Package Downloads
Cms.BuildingBlocks.Application

Reusable Application Layer building blocks for .NET applications implementing use-cases, application services, DTOs, input/output ports, mapping, validation, and orchestration to support Clean Architecture and Domain-Driven Design (DDD).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0-alpha.35 52 1/28/2026
1.1.0 246 1/23/2026
1.0.2 299 1/22/2026
1.0.1 215 1/22/2026
Loading failed