AI / LLM Integration
The 2026 reality. Microsoft Agent Framework went GA in April 2026, the official MCP C# SDK reached v1.0 in March 2026, Azure AI Foundry SDKs are at 2.0, and Microsoft.Extensions.AI has crystallized as the canonical .NET AI abstraction. This section covers the full stack — plus an explicit AI Models & Vendors Landscape subsection so you can hold an informed conversation about which model to pick for what workload.
This is the largest section in the guide because the surface area is wide and the material is freshest. Read it after the rest of the guide is internalized — senior AI work in .NET assumes solid grounding in DI, async, observability, security, and resilience.
Lookup & Reference
-
14 topics. OpenAI / Anthropic / Google / open-source / Phi; specialty models; selection matrix; pricing & cost engineering; benchmarks; AI coding tools (Copilot, Cursor, Windsurf, Cody, Continue, Claude Code); .NET connectivity per vendor; lock-in strategy.
-
The 2026 Microsoft AI ecosystem map — how the pieces fit together.
-
Things that were canonical in 2024 but should not be used in new code in 2026.
Microsoft Stack
-
5 topics.
IChatClient+ pipeline,IEmbeddingGenerator,IImageGenerator, function calling, telemetry & caching middleware. -
11 topics. v1.0 GA April 2026; agent basics + 5 orchestration patterns + workflows + MCP + A2A + migration.
-
4 topics. What it is, the v1.0 C# SDK, building servers and clients.
-
3 topics. Why it's still relevant, SK vs Agent Framework, deprecated planners.
Patterns & Storage
-
7 topics.
Microsoft.Extensions.VectorData, chunking & ingestion, store implementations (Azure AI Search / Qdrant / Azure SQL / Postgres pgvector / Cosmos), hybrid search & rerank. -
3 topics. ONNX Runtime GenAI for Phi-3/Phi-4, Ollama + Aspire, perf trade-offs.
Hosting & Tooling
-
4 topics. Foundry SDKs 2.0,
AIProjectClient, Foundry agent service, OpenAI-compat endpoints. -
2 topics. Copilot Chat extension model, Copilot SDK for .NET.
Operations
-
3 topics. OTel GenAI semantic conventions, prompt/response logging, agent tracing.
-
3 topics. Prompt injection & shields, PII & output validation, jailbreak detection.
Why this order
Models & vendors landscape leads so you can talk fluently about OpenAI / Anthropic / Google / open-source choices before diving into how to call them from .NET. Then Microsoft.Extensions.AI because it's the contract every later piece implements. Agent Framework follows because it's the orchestration layer on top of Extensions.AI. MCP comes next because Agent Framework integrates it. RAG and vector stores follow because RAG is the most common production AI pattern. Local/edge inference, Foundry, observability, security, GitHub Copilot, and SK-legacy close the section.
Cross-references
- IChatClient pipeline references Distributed Tracing (OTel GenAI conventions).
- AI security references Secrets Management.
- Agents reference Resilience: Polly v8 (every model call should be wrapped) and Caching Strategies (response caching).
- RAG references NoSQL & Event Stores (Cosmos DB vector search) and Case: RAG App on .NET (end-to-end design case).