Install
dotnet add package Microsoft.SemanticKernelMicrosoft’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
dotnet add package Microsoft.SemanticKernelVersion
v1.74.0 · April 2026 · .NET 6.0+
Best for
Azure-native .NET apps, enterprise plugins, ASP.NET integrations.
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 →
| Date | Version | Changes |
|---|---|---|
| 2026-04-21 | 1.74.0 | Index redesigned with Zero → Hero + Jump-to-topic grid. |
| April 2026 | 1.74.0 | Vector stores v1.34; MCP; A2A; Agent Framework bridge. |
Other languages: Python.