Soenneker.Messages.MsTeams 11.0.450

Prefix Reserved
dotnet add package Soenneker.Messages.MsTeams --version 11.0.450
                    
NuGet\Install-Package Soenneker.Messages.MsTeams -Version 11.0.450
                    
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="Soenneker.Messages.MsTeams" Version="11.0.450" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Messages.MsTeams" Version="11.0.450" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Messages.MsTeams" />
                    
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 Soenneker.Messages.MsTeams --version 11.0.450
                    
#r "nuget: Soenneker.Messages.MsTeams, 11.0.450"
                    
#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 Soenneker.Messages.MsTeams@11.0.450
                    
#: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=Soenneker.Messages.MsTeams&version=11.0.450
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Messages.MsTeams&version=11.0.450
                    
Install as a Cake Tool

Soenneker.Messages.MsTeams

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Defines a message envelope for routing an Adaptive Card payload to a named Microsoft Teams channel.

Installation

dotnet add package Soenneker.Messages.MsTeams

Create a message

using AdaptiveCards;
using Soenneker.Dtos.AdaptiveCard.Attachments;
using Soenneker.Dtos.MsTeams.Card;
using Soenneker.Messages.MsTeams;

var card = new AdaptiveCard(new AdaptiveSchemaVersion(1, 5));
card.Body.Add(new AdaptiveTextBlock
{
    Text = "Deployment completed",
    Weight = AdaptiveTextWeight.Bolder
});

var teamsCard = new MsTeamsCard();
teamsCard.Attachments.Add(new AdaptiveCardAttachments(card));

var message = new MsTeamsMessage
{
    Type = "teams.notification.v1",
    Id = Guid.NewGuid().ToString("N"),
    Queue = "teams-notifications",
    Sender = "deployment-service",
    CreatedAt = DateTimeOffset.UtcNow,
    Channel = "engineering-alerts",
    MsTeamsCard = teamsCard
};

MsTeamsCard.Type defaults to message. Its Attachments collection starts empty, so add at least one card before publishing the message.

Consumer responsibilities

This package models the queue payload only. It does not resolve Channel, store a webhook URL, validate the Adaptive Card, or send a request to Teams. The receiving service should:

  • map Channel to an approved destination rather than treating it as an arbitrary URL;
  • reject missing or empty channel names and attachment collections;
  • validate that each card schema version and element is supported by the target Teams client or webhook;
  • avoid placing credentials, webhook URLs, or sensitive operational data in the message or card content.

C# required members required metadata do not replace validation at the message-processing boundary.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Soenneker.Messages.MsTeams:

Package Downloads
Soenneker.MsTeams.Sender

A utility that sends Adaptive Card messages to Microsoft Teams via configured webhooks, handling channel routing, logging, and error responses including rate-limiting.

Soenneker.AutoFaker.Overrides.Messages.MsTeams

An AutoFaker (AutoBogus) override for the MsTeams Message

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.450 365 11/11/2026
11.0.449 193 11/11/2026
11.0.448 103 11/11/2026
11.0.447 123 11/11/2026
11.0.446 48 11/11/2026
11.0.445 50 11/11/2026
11.0.444 203 11/10/2026
11.0.442 1,144 11/3/2026
11.0.441 181 11/2/2026
11.0.440 184 11/2/2026
11.0.439 115 11/2/2026
11.0.438 812 10/26/2026
11.0.435 207 10/26/2026
11.0.433 233 10/26/2026
11.0.432 396 10/26/2026
4.0.431 1,232 10/15/2026
4.0.430 132 10/14/2026
4.0.429 381 10/14/2026
4.0.428 208 10/14/2026
4.0.426 107 10/14/2026
Loading failed

Updated Soenneker.Messages.Base to 11.0.1234