Soenneker.Messages.MsTeams 4.0.431

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

NuGet packages (3)

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

Package Downloads
Soenneker.MsTeams.Util

A centralized utility for sending rich, configurable Adaptive Card messages to Microsoft Teams channels via a service bus, with environment-aware filtering and dynamic content generation.

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
4.0.431 290 10/15/2026
4.0.430 64 10/14/2026
4.0.429 240 10/14/2026
4.0.428 127 10/14/2026
4.0.426 45 10/14/2026
4.0.425 43 10/14/2026
4.0.418 209 10/13/2026
4.0.417 315 10/12/2026
4.0.415 71 10/12/2026
4.0.414 175 10/12/2026
4.0.413 439 10/12/2026
4.0.412 172 10/11/2026
4.0.411 139 10/11/2026
4.0.410 177 10/11/2026
4.0.409 1,351 9/30/2026
4.0.408 140 9/30/2026
4.0.407 128 9/30/2026
4.0.405 117 9/30/2026
4.0.404 1,070 9/26/2026
4.0.403 653 9/25/2026
Loading failed

Updated NuGet packages