SourceKit.Generators.Builder
1.0.1
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package SourceKit.Generators.Builder --version 1.0.1
NuGet\Install-Package SourceKit.Generators.Builder -Version 1.0.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="SourceKit.Generators.Builder" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SourceKit.Generators.Builder" Version="1.0.1" />
<PackageReference Include="SourceKit.Generators.Builder" />
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 SourceKit.Generators.Builder --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SourceKit.Generators.Builder, 1.0.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 SourceKit.Generators.Builder@1.0.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=SourceKit.Generators.Builder&version=1.0.1
#tool nuget:?package=SourceKit.Generators.Builder&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SourceKit.Generators.Builder
Use [GenerateBuilder] attribute to generate builder.
- Only
recordorrecord structtypes are supported - Builder is a nested class
Builder - For collection properties field of type
List<>will be generated - For collection properties, methods
With{PropName}andWith{PropName}swill be generated - If collection element type is
IComparableorIComparable<TSelf>the.DistinctLINQ method would be called on.Buildmethod - If collection property is
List<>orHashSet<>then it will be converted to this collection respectively, otherwise,ToArraymethod will be called
You can use SomeType.Build() static method to shorthand create type instance using generated builder
[GenerateBuilder]
public partial record SomeQuery(IReadOnlyCollection<Guid> Ids, int Count);
...
var query = SomeQuery.Build(x => x.WithCount(2).WithId(Guid.NewGuid());
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- SourceKit.Generators.Builder.Annotations (>= 1.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on SourceKit.Generators.Builder:
| Package | Downloads |
|---|---|
|
Itmo.Dev.Platform.BackgroundTasks
Package Description |
|
|
Itmo.Dev.Platform.MessagePersistence
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.2.51 | 160 | 12/20/2025 |
| 1.2.50 | 1,429 | 5/16/2025 |
| 1.2.49 | 499 | 1/13/2025 |
| 1.2.48 | 164 | 1/13/2025 |
| 1.2.47 | 169 | 1/12/2025 |
| 1.2.46 | 186 | 1/12/2025 |
| 1.2.45 | 643 | 12/15/2024 |
| 1.2.44 | 386 | 12/15/2024 |
| 1.2.43 | 178 | 12/15/2024 |
| 1.2.42 | 173 | 12/15/2024 |
| 1.2.41 | 204 | 12/15/2024 |
| 1.2.40 | 190 | 12/15/2024 |
| 1.2.37 | 201 | 12/14/2024 |
| 1.2.36 | 675 | 11/18/2024 |
| 1.2.35 | 269 | 10/11/2024 |
| 1.2.34 | 319 | 5/4/2024 |
| 1.2.33 | 197 | 5/1/2024 |
| 1.2.31 | 237 | 4/27/2024 |
| 1.2.30 | 282 | 4/6/2024 |
| 1.1.29 | 245 | 4/3/2024 |
| 1.1.27 | 238 | 4/3/2024 |
| 1.1.26 | 227 | 4/3/2024 |
| 1.1.24 | 7,226 | 12/19/2023 |
| 1.1.23 | 295 | 12/6/2023 |
| 1.1.22 | 443 | 11/22/2023 |
| 1.1.21 | 699 | 11/11/2023 |
| 1.1.20 | 160 | 11/11/2023 |
| 1.1.19 | 236 | 11/11/2023 |
| 1.1.18 | 189 | 11/11/2023 |
| 1.1.16 | 167 | 11/11/2023 |
| 1.1.15 | 206 | 11/11/2023 |
| 1.1.14 | 213 | 11/11/2023 |
| 1.1.13 | 223 | 11/11/2023 |
| 1.1.11 | 177 | 11/11/2023 |
| 1.1.10 | 277 | 9/16/2023 |
| 1.1.4 | 352 | 9/10/2023 |
| 1.0.4 | 1,720 | 6/11/2023 |
| 1.0.3 | 279 | 6/10/2023 |
| 1.0.2 | 251 | 6/10/2023 |
| 1.0.1 | 488 | 5/14/2023 |
| 1.0.0 | 374 | 5/13/2023 |
Fixed nullable value type generation