FluentBuilder 0.13.0
dotnet add package FluentBuilder --version 0.13.0
NuGet\Install-Package FluentBuilder -Version 0.13.0
<PackageReference Include="FluentBuilder" Version="0.13.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="FluentBuilder" Version="0.13.0" />
<PackageReference Include="FluentBuilder"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add FluentBuilder --version 0.13.0
#r "nuget: FluentBuilder, 0.13.0"
#:package FluentBuilder@0.13.0
#addin nuget:?package=FluentBuilder&version=0.13.0
#tool nuget:?package=FluentBuilder&version=0.13.0
Usage
1️⃣ Annotate a class
Annotate a class with [AutoGenerateBuilder] to indicate that a FluentBuilder should be generated for this class:
[AutoGenerateBuilder]
public class User
{
public string FirstName { get; set; }
public string LastName { get; set; }
public DateTime? Date { get; set; }
}
2️⃣ Define a class which needs to act as a builder
This scenario is very usefull when you cannot modify the class to annotate it.
Create a public and partial builder class
And annotate this class with [AutoGenerateBuilder(typeof(XXX))] where XXX is the type for which you want to generate a FluentBuilder.
[AutoGenerateBuilder(typeof(UserDto))]
public partial class MyUserDtoBuilder
{
}
Use FluentBuilder
using System;
namespace Test;
class Program
{
static void Main(string[] args)
{
var user = new UserBuilder()
.WithFirstName("Test")
.WithLastName("User")
.Build();
Console.WriteLine($"{user.FirstName} {user.LastName}");
}
}
For more information, see the StefH/FluentBuilder.
Sponsors
Entity Framework Extensions and Dapper Plus are major sponsors and proud to contribute to the development of FluentBuilder.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on FluentBuilder:
| Repository | Stars |
|---|---|
|
wiremock/WireMock.Net
WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on WireMock Java, but extended with more functionality.Full documentation can be found at https://wiremock.org/dotnet/.
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 0.13.0 | 2,371 | 8/31/2025 | |
| 0.12.0 | 838 | 8/24/2025 | |
| 0.11.0 | 179 | 8/23/2025 | |
| 0.11.0-preview-02 | 189 | 6/24/2025 | |
| 0.11.0-preview-01 | 167 | 6/23/2025 | |
| 0.10.0.4-preview-01 | 163 | 8/20/2025 | |
| 0.10.0.3-preview-01 | 168 | 7/15/2025 | |
| 0.10.0.2 | 2,038 | 6/26/2025 | |
| 0.10.0.1 | 1,761 | 6/13/2025 | |
| 0.10.0 | 18,084 | 10/19/2024 | |
| 0.9.2 | 9,499 | 8/30/2024 | |
| 0.9.1 | 505 | 8/24/2024 | |
| 0.9.0 | 37,141 | 4/8/2023 | |
| 0.9.0-preview-01 | 238 | 4/6/2023 | |
| 0.8.0 | 539 | 4/3/2023 | |
| 0.7.1 | 541 | 3/14/2023 | |
| 0.7.1-preview-02 | 316 | 3/2/2023 | |
| 0.7.1-preview-01 | 303 | 2/25/2023 | |
| 0.7.0 | 10,482 | 9/20/2022 | |
| 0.7.0-preview-01 | 271 | 9/16/2022 | |
| 0.6.0 | 585 | 8/20/2022 | |
| 0.5.1 | 2,034 | 7/28/2022 | |
| 0.5.0 | 608 | 7/13/2022 | |
| 0.4.9 | 4,788 | 6/25/2022 | |
| 0.4.8 | 555 | 6/21/2022 | |
| 0.4.7 | 568 | 6/4/2022 | |
| 0.4.6 | 654 | 5/20/2022 | |
| 0.4.5 | 574 | 5/16/2022 | |
| 0.4.4 | 1,183 | 4/27/2022 | |
| 0.4.2 | 620 | 4/3/2022 | |
| 0.4.1 | 1,088 | 2/18/2022 | |
| 0.4.0 | 575 | 2/18/2022 | |
| 0.3.3 | 566 | 2/16/2022 | |
| 0.3.2 | 590 | 2/16/2022 | |
| 0.3.1 | 588 | 2/14/2022 | |
| 0.3.0 | 570 | 2/12/2022 | |
| 0.2.5 | 588 | 2/8/2022 | |
| 0.2.4 | 647 | 2/6/2022 | |
| 0.2.3 | 580 | 2/1/2022 | |
| 0.2.2 | 616 | 1/31/2022 | |
| 0.2.1 | 609 | 1/30/2022 | |
| 0.2.0 | 693 | 1/30/2022 | |
| 0.1.2 | 589 | 1/20/2022 | |
| 0.1.1 | 554 | 1/15/2022 | |
| 0.1.0 | 579 | 1/13/2022 | |
| 0.0.11 | 1,562 | 8/10/2021 | |
| 0.0.11-preview-01 | 342 | 8/10/2021 | |
| 0.0.10 | 441 | 8/8/2021 | |
| 0.0.10-preview-03 | 343 | 8/8/2021 | |
| 0.0.10-preview-02 | 355 | 8/7/2021 | |
| 0.0.10-preview-01 | 351 | 8/7/2021 | |
| 0.0.9 | 549 | 8/7/2021 | |
| 0.0.8 | 476 | 8/6/2021 | |
| 0.0.7 | 597 | 8/5/2021 | |
| 0.0.6 | 464 | 8/5/2021 | |
| 0.0.5 | 505 | 8/5/2021 | |
| 0.0.4 | 13,897 | 7/21/2021 | |
| 0.0.3 | 479 | 7/19/2021 | |
| 0.0.2 | 457 | 7/19/2021 | |
| 0.0.1 | 521 | 7/18/2021 |
# 0.13.0 (31 August 2025)
- #73 Revert Microsoft.CodeAnalysis.CSharp to version 4.8.0 [bug]
The full release notes can be found here: https://github.com/StefH/FluentBuilder/blob/main/ReleaseNotes.md

