AI agents · OpenClaw · self-hosting · automation

Quick Answer

Best AI Agent Frameworks for .NET in 2026: What to Pick

Published:

The short answer

Use Microsoft Agent Framework for new .NET agent projects. It has been production-ready (1.0) since April 3, 2026, it is the successor to Semantic Kernel, and it is the only .NET option with first-party multi-agent workflows, middleware, MCP and A2A support. As of November 28, 2026:

  • Microsoft Agent Framework (Microsoft.Agents.AI 1.28.0): best overall.
  • Microsoft.Extensions.AI (11.0.1): best for a simple chat feature or a single agent.
  • Semantic Kernel (1.82.0): keep it where it already runs; plan a migration.
  • Official SDKs (OpenAI 2.15.0, Anthropic 13.14.0, MCP C# SDK 2.4.0): the building blocks under all of them.

For Python and TypeScript choices see the best AI agent frameworks in 2026 and Mastra vs LangGraph vs Microsoft Agent Framework.

The comparison

Microsoft Agent FrameworkSemantic KernelMicrosoft.Extensions.AILangChain .NET (community)
Status (Nov 28, 2026)1.0 GA since Apr 3, 2026; NuGet 1.28.0Maintained; succeeded by Agent Framework; NuGet 1.82.0Stable; NuGet 11.0.1No stable release since v0.15.0 (June 2024); dev builds only
ScopeAgents, sessions, middleware, graph workflows, multi-agent orchestrationPlugins, planners, agents, memory connectorsProvider-neutral chat and embedding interfacesPort of LangChain concepts
ProvidersFoundry, Azure OpenAI, OpenAI, Anthropic Claude, Bedrock, Gemini, OllamaBroad connector setAny provider with an IChatClientSeveral
InteropMCP, A2AMCP via pluginsTool callingLimited
LicenseMITMITMITMIT
Pick it forNew agent appsExisting SK codeSimple AI featuresNot recommended for new work

Versions were read from NuGet and GitHub on November 28, 2026.

1. Microsoft Agent Framework: best overall

Microsoft introduced Agent Framework in October 2025 to unify Semantic Kernel’s enterprise foundations (sessions, type safety, filters, telemetry) with AutoGen’s multi-agent orchestration. It reached release candidate in February 2026 and 1.0 on April 3, 2026 for .NET and Python, with a commitment to backward compatibility. Version 1.0 includes:

  • a stable single-agent abstraction with first-party connectors for Microsoft Foundry, Azure OpenAI, OpenAI, Anthropic Claude, Amazon Bedrock, Google Gemini and Ollama;
  • middleware hooks to intercept and modify agent behaviour (logging, guardrails, approvals);
  • graph-based workflows for sequential, concurrent and hand-off patterns, including long-running and human-in-the-loop flows (package Microsoft.Agents.AI.Workflows, also 1.28.0);
  • interoperability through MCP and A2A.

It is not tied to Azure: you can run it against OpenAI’s or Anthropic’s APIs or a local Ollama model. A Go port is in preview; see the best AI agent frameworks for Go.

2. Microsoft.Extensions.AI: the lightweight option

If your feature is “summarise this ticket” or “answer questions with two tools”, you do not need agent orchestration. Microsoft.Extensions.AI gives you IChatClient and related interfaces with dependency injection, caching, telemetry and function invocation as composable middleware, and lets you switch providers through configuration. Agent Framework uses its message types, so moving up later is straightforward.

3. Semantic Kernel: maintain, do not start

Semantic Kernel still ships regularly (.NET 1.82.0 on November 7, 2026) and remains a reasonable host for existing plugins. Microsoft’s guidance is to start new agent projects on Agent Framework and follow its migration guides. AutoGen, the other parent, now has an archived repository.

4. Official SDKs and MCP

  • Anthropic NuGet package: the official .NET library for the Claude API, 13.14.0 (November 24, 2026).
  • OpenAI NuGet package: 2.15.0.
  • ModelContextProtocol (official C# SDK): 2.4.0 (November 7, 2026), for building MCP servers and clients in .NET.

Check current API prices before choosing a default model.

How to choose

  1. New agent or multi-agent app → Microsoft Agent Framework.
  2. One AI feature inside an existing ASP.NET app → Microsoft.Extensions.AI.
  3. Large Semantic Kernel codebase → keep it running, migrate agent parts first.
  4. Exposing your app’s data to assistants → the MCP C# SDK.

Last verified: November 28, 2026.

Sources