BlueTusk.SourceGeneration 1.0.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package BlueTusk.SourceGeneration --version 1.0.0
                    
NuGet\Install-Package BlueTusk.SourceGeneration -Version 1.0.0
                    
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="BlueTusk.SourceGeneration" Version="1.0.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlueTusk.SourceGeneration" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="BlueTusk.SourceGeneration">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
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 BlueTusk.SourceGeneration --version 1.0.0
                    
#r "nuget: BlueTusk.SourceGeneration, 1.0.0"
                    
#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 BlueTusk.SourceGeneration@1.0.0
                    
#: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=BlueTusk.SourceGeneration&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=BlueTusk.SourceGeneration&version=1.0.0
                    
Install as a Cake Tool

BlueTusk.SourceGeneration

BlueTusk.SourceGeneration generates reflection-free member access and CLR construction for PostgreSQL composite codecs.

Reference the package as an analyzer, mark a top-level CLR class, record, or struct as partial, and declare its catalogue identity:

<PackageReference Include="BlueTusk.SourceGeneration"
                  PrivateAssets="all"
                  OutputItemType="Analyzer"
                  ReferenceOutputAssembly="false" />
using BlueTusk.TypeSystem;

[BlueTuskComposite("app", "address")]
public sealed partial record Address(int HouseNumber, string Street);

Address.RegisterCodec(dataSourceBuilder.Types);

The generator applies the same snake-case and [BlueTuskName] conventions as the runtime mapper. It emits an IBlueTuskCodec<T> backed by generated member delegates and a generated construction delegate; catalogue discovery still binds field OIDs and nested codecs at data-source initialization time. This keeps PostgreSQL metadata authoritative while removing reflection from CLR member discovery and object construction.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has 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.

Version Downloads Last Updated
1.1.0-rc.1 85 8/29/2026
1.0.0 113 8/23/2026