Browse .NET Blogs (33)
Rick Strahl shows how to use .NET Native AOT to publish a Windows-native WinAPI-style (StdCall) DLL from a .NET class library, including how to export functions with UnmanagedCallersOnly, build with dotnet publish, and handle interop constraints like strings and structs when calling from FoxPro.
Rick Strahl shows how to host and integrate the Westwind.Scripting ScriptParser in a real app, using Documentation Monster as an example. He covers template hosting, runtime compilation setup, layout/content templates, path and base URL fixups for preview vs generated sites, and practical error handling.
Andrew Lock explains how to avoid some static byte[] allocations—even on .NET Framework—by returning ReadOnlySpan backed by embedded assembly data, and validates the behavior by inspecting generated IL, with a clear rundown of the sharp edges that can accidentally reintroduce allocations.
Rick Strahl walks through Westwind.Scripting’s ScriptParser: a C# (raw .NET) templating engine that parses Handlebars-like templates into generated C# code, compiles them with Roslyn at runtime, caches the results, and (new in this update) supports file-based layout pages and sections.
DevClass.com reports on Visual Studio 18.5 (Visual Studio 2026), covering new Copilot-driven “agentic” debugging, changes to how IntelliSense/Copilot suggestions are prioritized, and ongoing developer complaints about theme contrast and forced auto-updates.
Hidde de Smet compares three AI coding setups—single-agent, agent-with-tools, and multi-agent—using a realistic .NET Aspire + ASP.NET Core rate-limiting task to show trade-offs in fit, cost, latency, and common failure modes.
Andrew Lock explains how to build and publish custom Docker Sandbox templates so AI-agent sandboxes start with the tooling you need, including an example that installs the .NET SDK and a more advanced approach that swaps the base image while reapplying the sandbox layering.
DevClass.com reports that Microsoft will end support for ASP.NET Core 2.3 on April 7, 2027, leaving it without security patches or fixes and pushing teams running on .NET Framework toward migrating to modern ASP.NET on .NET 10.
Bruno Van Thournout's Blog explains the practical differences between UUID/GUID v4 and v7, focusing on why time-ordered v7 can improve database index behavior at scale, when v4 is still the safer choice (privacy), and how to migrate with minimal code changes across common runtimes.
Rick Strahl introduces the Westwind.Scripting ScriptParser template engine, showing how it compiles Handlebars-style templates with embedded raw C# into fast, cached .NET code, including new support for layout pages and sections.
Andrew Lock walks through what Microsoft.Extensions.Options.Contextual is, how to wire it up in an ASP.NET Core app (including its source generator and receiver pattern), and why he considers it experimental and usually not worth adopting compared to established feature-flag approaches.
DevClass.com (Tim Anderson) reports on AvaloniaUI’s preview backend for .NET MAUI using .NET 11, which aims to add Linux and WebAssembly browser targets by letting developers use Avalonia-drawn controls alongside or instead of MAUI’s native controls.
Randy Pagels shares practical tips for developers to maximize GitHub Copilot's effectiveness by providing better context and intent, rather than relying on longer prompts.
DevClass.com highlights Microsoft's switch to weekly Visual Studio Code releases and the rollout of Autopilot in Copilot Chat, offering developers new AI-driven coding experiences while raising fresh security concerns.
Andrew Lock explains recent architectural changes to the NetEscapades.EnumGenerators package family, guiding .NET developers on choosing the right flavor for their scenario and sharing lessons from evolving the popular source generator library.
John Edward outlines the core pitfalls of microservice architecture and offers actionable architectural patterns like API Gateway, Saga, and Circuit Breaker to help architects navigate complexity, deployment, and security concerns in distributed systems.
Rick Strahl explains how to simplify and automate code signing for Windows binaries using Azure Trusted Signing and the dotnet sign tool, sharing technical setup and scripting tips for secure development workflows.
Andrew Lock explores how to collect and process application metrics in .NET using MeterListener from System.Diagnostics.Metrics. He explains the MetricManager pattern, in-process aggregation, and visualizing metrics with Spectre.Console.
In this workshop summary, DevClass.com reviews Martin Fowler’s event marking 25 years since the Agile Manifesto, highlighting the growing impact of AI on coding, the renewed importance of TDD, and security risks in software development.
Bruno Van Thournout's Blog explains the practical difference between GUID and UUID naming, and when to choose UUID v4 vs v7. It includes quick generation examples in .NET (Guid.NewGuid), JavaScript (crypto.randomUUID), and Python (uuid.uuid4), plus guidance for databases, APIs, and distributed systems.