FluentCards 0.2.0-beta-0005

This is a prerelease version of FluentCards.
dotnet add package FluentCards --version 0.2.0-beta-0005
                    
NuGet\Install-Package FluentCards -Version 0.2.0-beta-0005
                    
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="FluentCards" Version="0.2.0-beta-0005" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FluentCards" Version="0.2.0-beta-0005" />
                    
Directory.Packages.props
<PackageReference Include="FluentCards" />
                    
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 FluentCards --version 0.2.0-beta-0005
                    
#r "nuget: FluentCards, 0.2.0-beta-0005"
                    
#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 FluentCards@0.2.0-beta-0005
                    
#: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=FluentCards&version=0.2.0-beta-0005&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=FluentCards&version=0.2.0-beta-0005&prerelease
                    
Install as a Cake Tool

FluentCards — .NET

A .NET 8 library for building Adaptive Cards using a fluent builder pattern with strong typing and AOT-compatible JSON serialization.

Installation

dotnet add package FluentCards

Quick Start

using FluentCards;

var card = AdaptiveCardBuilder.Create()
    .WithVersion(AdaptiveCardVersion.V1_5)
    .AddTextBlock(tb => tb
        .WithText("Hello, FluentCards!")
        .WithSize(TextSize.Large)
        .WithWeight(TextWeight.Bolder)
        .WithWrap(true))
    .AddAction(a => a
        .OpenUrl("https://adaptivecards.io")
        .WithTitle("Learn More"))
    .Build();

Console.WriteLine(card.ToJson());

Project Layout

dotnet/
├── src/FluentCards/          # Library source
├── tests/FluentCards.Tests/  # xUnit tests
├── samples/                  # Usage examples
├── benchmarks/               # BenchmarkDotNet benchmarks
└── scripts/                  # Screenshot and setup utilities

API Overview

All elements use the builder pattern: Create()WithX() / AddX(configure)Build().

Available builders: AdaptiveCardBuilder, TextBlockBuilder, ImageBuilder, ContainerBuilder, ColumnSetBuilder, ColumnBuilder, FactSetBuilder, RichTextBlockBuilder, TextRunBuilder, ActionSetBuilder, MediaBuilder, ImageSetBuilder, TableBuilder, ActionBuilder, BackgroundImageBuilder, RefreshBuilder, AuthenticationBuilder, and input builders (InputTextBuilder, InputNumberBuilder, InputDateBuilder, InputTimeBuilder, InputToggleBuilder, InputChoiceSetBuilder).

Build & Test

cd dotnet
dotnet build --configuration Release
dotnet test --configuration Release --no-build

See the root README for all language ports, and Schema Validation and Teams Cards for more details.

Product Compatible and additional computed target framework versions.
.NET 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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • 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
0.2.0-beta-0005 54 4/27/2026
0.2.0-beta-0004 203 4/15/2026
0.2.0-beta-0001 51 4/15/2026
0.1.0-beta-0023 59 4/15/2026
0.1.0-beta-0020 53 4/15/2026
0.1.0-beta-0014 55 4/15/2026
0.1.0-beta-0013 55 4/7/2026
0.1.0-beta-0007 57 4/6/2026
0.1.0-beta-0003 52 4/6/2026
0.1.0-beta-0002 48 4/6/2026

Initial release with full Adaptive Cards 1.6.0 schema support, fluent builder API, AOT-compatible serialization, validation system, and comprehensive samples.