Weekly .NET Roundup: Cosmos DB Transactions and .NET 11 Updates
Azure Cosmos DB for NoSQL distributed transactions entered public preview, giving .NET applications service-managed, all-or-nothing updates across partitions, containers, and databases within one account and region, subject to preview limits and enrollment requirements. The .NET 11 assessment highlights opt-in Runtime Async compilation, faster single-file rebuilds with C# Dev Kit 11, asynchronous Blazor form validation, and an OpenAPI 3.2 default that developers should check against their tooling. DocumentExtractionClient brings provider-independent document extraction to the .NET AI Community Toolkit in preview, while Llama demonstrates local model integration through Microsoft.Extensions.AI on Windows. Visual Studio's November update improves solution parsing and adds persistent Copilot Chat session controls and grouped pull-request reviews, reflecting a shared emphasis on reducing development friction while making application behavior more predictable.
This Week's Overview
- Azure Cosmos DB previews cross-partition transactions
- .NET AI integration covers document extraction and local models
- C# guidance sharpens type contracts and formatting
- .NET 11 evaluation spans performance, web development, and support
- Visual Studio updates project workflows and assisted reviews
- Other .NET News
- Also relevant this week
- Dates to know
Azure Cosmos DB previews cross-partition transactions
Azure Cosmos DB for NoSQL distributed transactions are now in public preview, allowing operations to span logical partitions, containers, and databases within one account and region. The service coordinates a two-phase commit so participating operations commit together rather than leaving partially completed changes. For applications that need all-or-nothing updates across those boundaries, this provides a service-managed transaction mechanism.
The preview requires enrollment, provisioned throughput, single-write regions, and Azure Cosmos DB .NET SDK 3.64.0-preview.0 or higher. Each transaction supports up to 100 operations and 2 MB, and the preview has no service-level agreement. Secondary regions receive committed changes asynchronously, so readers there can temporarily see different data versions across participating partitions.
.NET AI integration covers document extraction and local models
The .NET AI guidance covers two distinct integration tasks: turning documents into structured input and connecting applications to locally hosted models. Both use common APIs to keep application code separate from the underlying provider.
Provider-independent document extraction
DocumentExtractionClient and its starter providers are available in preview in the .NET AI Community Toolkit. Its ExtractAsync method returns an ExtractionDocument containing structured text, tables, images, and source locations through a provider-independent API. Starter providers include PdfPig, vision language models, Azure Content Understanding, Azure AI Document Intelligence, and Mistral OCR.
Middleware can attempt local PDF extraction first, then fall back to an optical character recognition (OCR) provider when a document contains almost no text. That gives developers a way to handle text-based and scanned documents within the same extraction pipeline. The retrieval-augmented generation (RAG) sample demonstrates downstream processing with heading-based chunks, 256-token limits, 32-token overlap, and 768-dimensional embeddings.
Local model serving on Windows
Llama is a free, open-source Windows 11 tray application built with .NET 10 and WinUI 3 and powered by llama.cpp. It exposes OpenAI-compatible endpoints at http://localhost:9931, allowing local requests without an API key. The tutorial connects a .NET 11 C# file-based application through Microsoft.Extensions.AI for streaming responses and automatic tool invocation.
Models load on demand and unload after five idle minutes by default. Tool calling depends on the selected model, so developers need to check that capability before relying on the sample's machine-information and downloaded-model-listing tools.
C# guidance sharpens type contracts and formatting
The C# material combines a new extension capability with practical guidance on generic code, nullability, and culture-independent formatting. The common concern is making reusable code express its requirements and behave predictably.
Extension indexers in C# 15
C# 15 introduces extension indexers, allowing code to retrieve values through an indexer even when the developer does not own the object type. The video introduces this addition to the language's extension capabilities.
Generic constraints and numeric code
The generics guide uses examples targeting .NET 10 and C# 14, tested in JetBrains Rider. It explains how constraints restrict accepted type arguments while granting access to interface members and parameterless constructors, and how generic math uses static abstract interface members with INumber to express arithmetic across numeric types.
For unconstrained value comparisons, the guide recommends EqualityComparer<T>.Default. It also explains the runtime distinction behind generic code: the .NET just-in-time compiler specializes implementations for value types while sharing a canonical implementation across reference types.
Nullable contracts at compile time and during deserialization
Nullable reference types provide compile-time warnings rather than different runtime types: string and string? remain the same runtime type. Project settings enable nullability globally, while #nullable enable supports file-by-file migration. The guide recommends resolving CS8618 with required members, constructor initialization, or sensible defaults instead of suppressing warnings with null!.
NotNullWhen and MemberNotNull let helper methods communicate nullability guarantees to the compiler. For JSON deserialization, RespectNullableAnnotations rejects explicit null values for non-nullable properties, but required is still needed to detect missing properties.
Invariant formatting with measured allocation costs
Default string interpolation uses the current culture, which can make numeric output differ between application environments. The custom handler delegates to DefaultInterpolatedStringHandler with invariant culture on .NET 6 and later, while its .NET Framework implementation uses a cached StringBuilder and specialized numeric overloads to reduce allocations and boxing.
In the modern .NET benchmark, the custom helper and string.Create each allocated 176 bytes, compared with 264 bytes for FormattableString.Invariant. The .NET Framework benchmark measured 313 bytes for the helper versus 433 bytes for FormattableString.Invariant, giving developers concrete allocation comparisons for the demonstrated implementations.
.NET 11 evaluation spans performance, web development, and support
A post-conference assessment identifies .NET 11 changes developers can evaluate in their own applications. It distinguishes measured performance examples from preview status and support commitments.
Runtime and rebuild performance
Runtime Async compilation remains an opt-in preview for application code, although .NET 11 runtime libraries already use it. With SDK 11.0.100, the author's warmed-up Windows x64 sample measured 144 bytes per operation by default and zero with Runtime Async. Separately, C# Dev Kit 11 reduced a single-file rebuild on Microsoft's 407-project Aspire solution from 36.1 seconds to 2.1 seconds.
Web application changes
Blazor supports asynchronous form validation, giving developers an option for validation that cannot complete synchronously. ASP.NET Core's built-in OpenAPI generation now defaults to version 3.2, a default worth checking when evaluating generated API descriptions.
Support planning
Microsoft lists November 14, 2028 as the support end date for both .NET 10 long-term support (LTS) and .NET 11 standard-term support (STS). For these releases, the support labels therefore do not imply different end dates.
Visual Studio updates project workflows and assisted reviews
Visual Studio's November update addresses project handling, Copilot Chat sessions, and pull-request review. The performance measurements apply specifically to solution parsing, not total solution-load time.
Solution parsing and restore
Parse Solution measurements improved by about 20% for Chromium and 9% for Unreal Engine. Open Folder now supports MSBuild Restore for supported solution and project files, excluding CMake providers and C++ .vcxproj files.
Copilot Chat session controls
Starting with Visual Studio 2026 version 18.12, Copilot Chat runs on the Microsoft Copilot SDK developed by GitHub. Chat saves conversation modes and tool permissions per session and supports file attachments and mid-task instructions, letting developers adjust an ongoing task without starting a separate conversation.
Focused pull-request review
Change Groups organizes pull-request changes into focused groups with summaries, tags, and review guidance. This gives reviewers a grouped view of the changes rather than treating the entire pull request as one undifferentiated review task.
Other .NET News
A reusable microservice access-control pattern separates policy enforcement from a relationship-aware decision service, passing trusted subject and tenant context, the action, resource type, and every target resource ID. Batch checks require authorization for all targets and stop operations on evaluator failure, while Application Insights telemetry and continuous integration contract tests identify authenticated endpoints that complete without an object-authorization decision.
Also relevant this week
- Microsoft Agent Framework repository update: Unauthorized agent-framework Python meta-package versions 1.26.1 and 1.26.2 were uploaded to PyPI on November 17, 2026, with credential-stealing code. Full story in the Security roundup.
- Evidence before autonomy: Designing multi-agent battery passports on Azure: The proposed architecture uses a fictional scenario and synthetic data, not a customer deployment or measured production results. Full story in the Azure roundup.
- Running green hydrogen export plants with AI agents on Azure: The architecture has not been built, and its language-model agents and evaluations have not been run. Full story in the Azure roundup.
Dates to know
Deadlines
- 14 November 2028: .NET: Microsoft lists the same support end date for .NET 10 LTS and .NET 11 STS. (The .NET 11 changes I’d try first after .NET Conf 2026)