libanvl.uuid
2.2.4-beta
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
This is a prerelease version of libanvl.uuid.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package libanvl.uuid --version 2.2.4-beta
NuGet\Install-Package libanvl.uuid -Version 2.2.4-beta
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="libanvl.uuid" Version="2.2.4-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add libanvl.uuid --version 2.2.4-beta
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: libanvl.uuid, 2.2.4-beta"
#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.
// Install libanvl.uuid as a Cake Addin #addin nuget:?package=libanvl.uuid&version=2.2.4-beta&prerelease // Install libanvl.uuid as a Cake Tool #tool nuget:?package=libanvl.uuid&version=2.2.4-beta&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
libanvl.UUID
Immutable, endian-aware UUID library for .NET. Also generates Version V (5) and Version IV (4) UUIDs.
Requirements
Releases
- NuGet packages are available on NuGet.org
- Embedded debug symbols
- Source Link enabled
- NuGet packages from CI builds are available on the libanvl GitHub feed
Features
- Immutable
- Endian-aware
- Generates Version IV (4) "Random" UUIDs
- Generates Version V (5) Namespaced UUIDs
- Generates Version VII (7) "Unix Timestamp" UUIDs
- Generates Version VIII (8) "Custom" UUIDs
- Implicit conversion to and from System.Guid
- Conversion to System.Guid always follows platform endianess
- Implicit conversion from byte[] and ReadOnlyMemory<byte>
- Copy to new byte[]
- Property access to all five UUID records
- No signed ints in the API
- Enumerable as a sequence of bytes
- More constructors than you can shake a stick at
Examples
public Guid GetWindowsTerminalNamespacedProfileGuid(string profileName)
{
Guid terminalNamespace = new("2BDE4A90-D05F-401C-9492-E40884EAD1D8");
return UUID.V(terminalNamespace, profileName);
}
public Guid GetWindowsTerminalNamespacedFragmentProfileGuid(string fragmentName, string profileName)
{
Guid fragmentNamespace = new("f65ddb7e-706b-4499-8a50-40313caf510a");
// Guid can be implicitly converted to UUID with endianess that matches the platform
UUID fragmentUUID = UUID.V(fragmentNamespace, fragmentName);
return UUID.V(fragmentUUID, profileName);
}
public UUID GetBigEndianUUID(UUID value)
{
if (value.IsLittleEndian)
{
value = value.EndianSwap()
}
return value;
}
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. |
.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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.Bcl.Memory (>= 9.0.0)
- System.Memory (>= 4.6.0)
-
net8.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on libanvl.uuid:
Package | Downloads |
---|---|
Tapanga.Core
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.3.7-rc | 40 | 12/16/2024 |
2.2.4-beta | 50 | 12/11/2024 |
2.1.9-beta | 50 | 12/11/2024 |
2.0.28-beta | 47 | 12/9/2024 |
2.0.4-alpha-g7bcaeccacc | 55 | 12/8/2024 |
1.13.3-beta | 322 | 11/13/2021 |
1.11.12-beta | 180 | 11/13/2021 |
1.9.7-beta | 141 | 11/12/2021 |
1.6.8-beta | 217 | 11/7/2021 |