From .NET Blog · 6 stories
Optimizing GitHub Copilot for .NET Development
The article emphasizes the effective use of GitHub Copilot for .NET developers by integrating it into existing workflows. It highlights how inline completions and chat features can enhance productivity for common tasks in C# development.
Practical Use Cases for Durable Task in .NET Applications
This article explores practical scenarios where Durable Task is beneficial for managing long-running, fault-tolerant operations in .NET applications. It provides five examples demonstrating when to use durable execution over traditional methods and highlights its application in AI agents.
Creating Memory Dumps in C# for Debugging Unresponsive Applications
This article explains how to create memory dumps in C# to debug unresponsive applications, focusing on issues related to asynchronous code and thread pool saturation. Memory dumps capture application state, offering insights into objects in memory and broader application behavior for post-crash analysis.
Using C# Unions and Closed Hierarchies in ASP.NET Core for Flexible API Contracts
C# 15 and .NET 11 introduce native union declarations, allowing a single type to represent a value from a fixed list of case types. This feature simplifies handling API contracts where a value can have multiple JSON types, such as an integer or a string, by providing compile-time checks for exhaustive handling of all possible cases.
Deploying Microsoft Agent Framework Console Apps to Azure with Foundry Hosted Agents
Microsoft's Foundry Hosted Agents now provide a managed solution for deploying console applications built with the Microsoft Agent Framework to Azure. This simplifies the deployment process, eliminating the need for extensive manual setup of infrastructure components like Dockerfiles, web servers, and scaling rules.
Live Speech-to-Text with Foundry Local and C# for .NET 10
A new guide demonstrates how to build a C# console application for live speech-to-text transcription using Foundry Local and a specialized NVIDIA Nemotron speech model. This application processes microphone audio in real time, providing partial and final transcription results locally.