Skip to content

Semantic Kernel (.NET)

Microsoft’s enterprise SDK for .NET. Semantic Kernel for C# brings plugins, planners, vector stores, MCP, and A2A into your ASP.NET Core, Azure Functions, and desktop apps with full Polly resilience and Application Insights observability.

Install

Terminal window
dotnet add package Microsoft.SemanticKernel

Version

v1.74.0 · April 2026 · .NET 6.0+

Best for

Azure-native .NET apps, enterprise plugins, ASP.NET integrations.

  • Vector stores v1.34 — new abstractions with pluggable providers.
  • MCP client + server (March 2025).
  • Google A2A protocol integration.
  • Microsoft Agent Framework bridge for gradual migration.
  • Polly v8 resilience patterns.
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.ChatCompletion;
var builder = Kernel.CreateBuilder();
builder.AddOpenAIChatCompletion("gpt-4o", Environment.GetEnvironmentVariable("OPENAI_API_KEY")!);
var kernel = builder.Build();
var chat = kernel.GetRequiredService<IChatCompletionService>();
var history = new ChatHistory("You are a helpful assistant.");
history.AddUserMessage("What is 15 + 27?");
var result = await chat.GetChatMessageContentAsync(history, kernel: kernel);
Console.WriteLine(result.Content);

Ready? Start Zero → Hero Step 1 →


DateVersionChanges
2026-04-211.74.0Index redesigned with Zero → Hero + Jump-to-topic grid.
April 20261.74.0Vector stores v1.34; MCP; A2A; Agent Framework bridge.

Other languages: Python.