Aoxe.UUIDv7
2025.1.4
dotnet add package Aoxe.UUIDv7 --version 2025.1.4
NuGet\Install-Package Aoxe.UUIDv7 -Version 2025.1.4
<PackageReference Include="Aoxe.UUIDv7" Version="2025.1.4" />
paket add Aoxe.UUIDv7 --version 2025.1.4
#r "nuget: Aoxe.UUIDv7, 2025.1.4"
// Install Aoxe.UUIDv7 as a Cake Addin #addin nuget:?package=Aoxe.UUIDv7&version=2025.1.4 // Install Aoxe.UUIDv7 as a Cake Tool #tool nuget:?package=Aoxe.UUIDv7&version=2025.1.4
Aoxe.UUIDv7
Aoxe.UUIDv7 is a C# library for generating UUID version 7 identifiers based on the proposed RFC. It provides time-ordered UUIDs with improved sorting and uniqueness features.
1. Features
- Generate version 7 UUIDs.
- Convert UUIDs to shorter string representations.
- Optimized Base32 encoding.
- Includes unit tests using xUnit.
2. Installation
Install via NuGet Package Manager:
dotnet add package Aoxe.UUIDv7
Or via the Package Manager Console:
Install-Package Aoxe.UUIDv7
3. Usage
using Aoxe.UUIDv7;
class Program
{
static void Main()
{
// Generate a UUIDv7
Guid uuid = Uuid7Generator.GenerateUuid7();
// Convert to a 25-character Base32 string
string id25 = uuid.ToId25();
// Convert to a 22-character Base64URL string
string id22 = uuid.ToId22();
Console.WriteLine($"UUIDv7: {uuid}");
Console.WriteLine($"ID25: {id25}");
Console.WriteLine($"ID22: {id22}");
}
}
4. API Reference
4.1. Uuid7Generator.GenerateUuid7()
Generates a new UUID version 7.
4.2. Uuid7Generator.ToId25(this Guid uuid)
Converts a UUID to a 25-character Base32 encoded string.
4.3. Uuid7Generator.ToId22(this Guid uuid)
Converts a UUID to a 22-character Base64URL encoded string.
5. Contributing
Contributions are welcome. Please submit issues and pull requests for any improvements.
6. License
This project is licensed under the MIT License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.