JorgeCostaMacia.GuidFactory 6.0.4

Prefix Reserved
dotnet add package JorgeCostaMacia.GuidFactory --version 6.0.4
                    
NuGet\Install-Package JorgeCostaMacia.GuidFactory -Version 6.0.4
                    
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="JorgeCostaMacia.GuidFactory" Version="6.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JorgeCostaMacia.GuidFactory" Version="6.0.4" />
                    
Directory.Packages.props
<PackageReference Include="JorgeCostaMacia.GuidFactory" />
                    
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 JorgeCostaMacia.GuidFactory --version 6.0.4
                    
#r "nuget: JorgeCostaMacia.GuidFactory, 6.0.4"
                    
#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 JorgeCostaMacia.GuidFactory@6.0.4
                    
#: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=JorgeCostaMacia.GuidFactory&version=6.0.4
                    
Install as a Cake Addin
#tool nuget:?package=JorgeCostaMacia.GuidFactory&version=6.0.4
                    
Install as a Cake Tool

JorgeCostaMacia.GuidFactory

Factory for creating time-ordered GUIDs (UUIDv7), with automatic fallback to Guid.NewGuid() (v4) on older runtimes. Zero dependencies.

NuGet Downloads Build License


Install

dotnet add package JorgeCostaMacia.GuidFactory

Usage

using JorgeCostaMacia.GuidFactory.Domain;

Guid id = GuidFactory.Create();

On .NET 9+ it returns a time-ordered UUIDv7 (Guid.CreateVersion7()) — better database index locality and natural sortability. On earlier runtimes it falls back to a standard UUIDv4 (Guid.NewGuid()).

Requirements

One of the following SDKs: .NET 8 / 9 / 10 (.NET 10 recommended).

About

JorgeCostaMacia.GuidFactory is part of shared-net — a set of foundational, self-contained .NET packages, each scoped to a single concern and reusable across your bounded contexts.

Author: Jorge Costa Maciá

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 is compatible.  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.
  • net9.0

    • No dependencies.

NuGet packages (10)

Showing the top 5 NuGet packages that depend on JorgeCostaMacia.GuidFactory:

Package Downloads
JorgeCostaMacia.Exception

Domain exception hierarchy (Domain / Error / Exist / NotFound / Validation) with traceable metadata: id, type, error code, HTTP code and timestamp

JorgeCostaMacia.Bus.Kafka

Kafka transport for JorgeCostaMacia.Bus — the concrete command/event bus over Confluent.Kafka: message base records, contexts, handler/subscriber bases and the producer/consumer. Reference this one package to use the bus on Kafka.

JorgeCostaMacia.Http

HTTP request/response base contracts — traceable abstract records (id, correlation id, UTC timestamp) for messages crossing the HTTP layer

JorgeCostaMacia.Bus.RabbitMQ

RabbitMQ transport for JorgeCostaMacia.Bus — the concrete command/event bus over the official RabbitMQ.Client (v7, async): message base records, contexts, handler/subscriber bases and the producer/consumer. Reference this one package to use the bus on RabbitMQ.

JorgeCostaMacia.Http.Exception.Serilog

Serilog exception handler that logs every unhandled exception (enriched with domain aggregate metadata and the authenticated user) without producing the response

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.0.4 211 7/22/2026
6.0.3 206 7/22/2026
6.0.2 633 7/19/2026
6.0.1 380 7/15/2026
6.0.0 376 7/13/2026
5.0.0 193 7/12/2026
4.3.0 189 7/12/2026
4.2.0 275 7/11/2026
4.1.0 195 7/10/2026
4.0.0 247 7/9/2026
3.0.1 159 7/8/2026
2.0.8 396 7/1/2026
2.0.7 287 6/30/2026
2.0.6 131 6/30/2026
2.0.5 142 6/30/2026
2.0.4 153 6/30/2026
2.0.3 128 6/29/2026
2.0.2 106 6/29/2026
2.0.1 104 6/29/2026
2.0.0 133 6/29/2026
Loading failed