TwoRivers.Gps.HP.Generators
2.0.0-beta.1
This is a prerelease version of TwoRivers.Gps.HP.Generators.
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 TwoRivers.Gps.HP.Generators --version 2.0.0-beta.1
NuGet\Install-Package TwoRivers.Gps.HP.Generators -Version 2.0.0-beta.1
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="TwoRivers.Gps.HP.Generators" Version="2.0.0-beta.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TwoRivers.Gps.HP.Generators" Version="2.0.0-beta.1" />
<PackageReference Include="TwoRivers.Gps.HP.Generators" />
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 TwoRivers.Gps.HP.Generators --version 2.0.0-beta.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TwoRivers.Gps.HP.Generators, 2.0.0-beta.1"
#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 TwoRivers.Gps.HP.Generators@2.0.0-beta.1
#: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=TwoRivers.Gps.HP.Generators&version=2.0.0-beta.1&prerelease
#tool nuget:?package=TwoRivers.Gps.HP.Generators&version=2.0.0-beta.1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
TwoRivers.Gps.HP.Generators
Source generators for the high-performance NMEA parsing library.
Features
- NmeaMessageUnionGenerator: Generates a discriminated union (
NmeaMessage) for all message types marked with[NmeaMessage]attribute.
Generated Code
The generator produces:
NmeaMessageTypeenum with all message typesNmeaMessagestruct (discriminated union) with:- Type checking properties (
IsGLL,IsGFDTA, etc.) - TryGet methods (
TryGetGLL(),TryGetGFDTA(), etc.) - Factory methods (
FromGLL(),FromGFDTA(), etc.) TryParse()for parsing sentencesMatch()for exhaustive pattern matching
- Type checking properties (
Usage
Mark your message structs with [NmeaMessage]:
[NmeaMessage("GPGLL")]
public struct GLL
{
public Double Latitude;
public Double Longitude;
// ...
}
Mark your parser structs with [NmeaParser]:
[NmeaParser(typeof(GLL))]
public readonly struct GllParser : INmeaParser<GLL>
{
// ...
}
The generator will automatically create the discriminated union.
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.CodeAnalysis.CSharp (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.0-beta.8 | 77 | 3/5/2026 |
| 2.0.0-beta.7 | 66 | 3/5/2026 |
| 2.0.0-beta.6 | 64 | 3/5/2026 |
| 2.0.0-beta.5 | 64 | 3/4/2026 |
| 2.0.0-beta.4 | 63 | 3/4/2026 |
| 2.0.0-beta.3 | 62 | 3/3/2026 |
| 2.0.0-beta.2 | 64 | 3/3/2026 |
| 2.0.0-beta.1 | 60 | 3/3/2026 |
| 2.0.0-beta.0 | 64 | 3/3/2026 |
| 1.1.6 | 117 | 2/26/2026 |
| 1.1.5 | 104 | 2/25/2026 |
| 1.1.4 | 106 | 2/22/2026 |
| 1.1.3 | 108 | 2/22/2026 |
| 1.1.2 | 110 | 2/22/2026 |
| 1.1.1 | 113 | 2/22/2026 |
| 1.1.0 | 109 | 2/22/2026 |