iMessageSDK.Extensions.DependencyInjection
1.0.0
dotnet add package iMessageSDK.Extensions.DependencyInjection --version 1.0.0
NuGet\Install-Package iMessageSDK.Extensions.DependencyInjection -Version 1.0.0
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="iMessageSDK.Extensions.DependencyInjection" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="iMessageSDK.Extensions.DependencyInjection" Version="1.0.0" />
<PackageReference Include="iMessageSDK.Extensions.DependencyInjection" />
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 iMessageSDK.Extensions.DependencyInjection --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: iMessageSDK.Extensions.DependencyInjection, 1.0.0"
#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 iMessageSDK.Extensions.DependencyInjection@1.0.0
#: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=iMessageSDK.Extensions.DependencyInjection&version=1.0.0
#tool nuget:?package=iMessageSDK.Extensions.DependencyInjection&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
iMessageSDK
A production-grade .NET SDK for reading and sending messages through the macOS Messages
application. iMessageSDK models chats, messages, attachments, reactions, and delivery status as a
clean domain — consumers never see SQLite, chat.db, AppleScript, or SQL.
Platform: macOS only. iMessageSDK automates the local Messages application and reads its conversation history; there is no cross-platform or cloud API for iMessage.
Packages
| Package | Purpose |
|---|---|
iMessageSDK.Abstractions |
Interfaces, records, enums — the public contract. Depend on this alone to mock/test against the SDK. |
iMessageSDK |
The concrete implementation (MessageClient). |
iMessageSDK.Extensions.DependencyInjection |
AddIMessageSdk() for IServiceCollection. |
Quickstart
await using var client = await MessageClient.CreateAsync();
// Diagnose setup issues before doing anything else.
var report = await client.Diagnostics.RunAsync();
if (!report.IsHealthy)
{
foreach (var issue in report.Issues)
{
Console.WriteLine(issue);
}
return;
}
// Fluent querying.
var recent = await client.Messages
.WhereChat(someChatId)
.Containing("hello")
.Take(50)
.ToListAsync();
// Sending.
await client.Messages.SendTextAsync(someChatId, "Hey!");
// Watching.
var watcher = client.Messages.Watch();
watcher.MessageReceived += (_, e) => Console.WriteLine($"{e.Message.Sender?.DisplayName}: {e.Message.Text}");
await watcher.StartAsync();
Documentation
| Product | Versions 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.
-
net10.0
- iMessageSDK (>= 1.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Options (>= 9.0.0)
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 |
|---|---|---|
| 1.0.0 | 106 | 7/1/2026 |