Install
dotnet add package Microsoft.SemanticKernel --version 1.81.0Microsoft Semantic Kernel for .NET — plugins, function calling, agents, orchestrations, vector stores, MCP and ASP.NET Core integration.
Microsoft’s SDK for building AI apps and agents in .NET. Semantic Kernel for C# brings a kernel of AI services and plugins, function calling, agents and orchestrations, Microsoft.Extensions.VectorData vector stores and MCP tools into ASP.NET Core, Azure Functions and worker services, with OpenTelemetry built in.
Install
dotnet add package Microsoft.SemanticKernel --version 1.81.0Version
Microsoft.SemanticKernel 1.81.0 · .NET 8 / .NET 10 (and .NET Standard 2.0) · checked 2026-11-19
Best for
Existing SK codebases, Azure-native .NET apps, plugin-based agents.
Microsoft.SemanticKernel.Connectors.* vector store packages (InMemory, AzureAISearch, Qdrant, Redis, SqlServer, PgVector, SqliteVec, CosmosNoSql, Weaviate …) are deprecated in favour of CommunityToolkit.VectorData.* (for example .PgVector, .AzureCosmosDB; .SqliteVec is still -preview)..AsAIAgent(), returning a Microsoft.Agents.AI.AIAgent.1.47.0-preview); use function calling.-preview; A2A, Copilot Studio, Bedrock, Process and most non-OpenAI connector packages are -alpha.using Microsoft.SemanticKernel;using Microsoft.SemanticKernel.Agents;
var builder = Kernel.CreateBuilder();builder.AddOpenAIChatCompletion("gpt-6-luna", Environment.GetEnvironmentVariable("OPENAI_API_KEY")!);var kernel = builder.Build();
ChatCompletionAgent agent = new(){ Name = "Assistant", Instructions = "You are a helpful assistant.", Kernel = kernel,};
await foreach (var item in agent.InvokeAsync("What is 15 + 27?")){ Console.WriteLine(item.Message.Content);}ChatCompletionAgent is in Microsoft.SemanticKernel.Agents.Core (dotnet add package Microsoft.SemanticKernel.Agents.Core --version 1.81.0).
Ready? Start Zero → Hero Step 1 →
| Date | Version | Changes |
|---|---|---|
| 2026-10-21 | 1.81.0 | Vector store package names and preview/alpha labels corrected. .NET diagrams merged into the shared diagrams page; links made root-absolute. |
| 2026-10-21 | 1.81.0 | Version now read from the site’s version registry (was 1.74.0). Supported targets corrected (.NET 8/10 and .NET Standard 2.0, not .NET 6). Agent Framework relationship stated per Microsoft’s support policy. “What’s new” replaced with verified changes (vector store connector rename, AsAIAgent(), planner deprecation). Comprehensive guide rewritten against the published API. |
| 2026-04-21 | 1.74.0 | Index redesigned with Zero → Hero + Jump-to-topic grid. |
Other languages: Python.