Exploring SQL Server Integration with .NET Aspire: A Collection of Hands-On Samples


I’m happy to share a new GitHub repository with developers: azure-sql-db-aspire. This collection of eight hands-on examples demonstrates how to integrate SQL Server and Azure SQL with .NET Aspire, making it easier to build modern, cloud-native applications. Why .NET Aspire for SQL Server? .NET Aspire is a new opinionated, cloud-ready stack for .NET applications that […]

The case of COM failing to pump messages in a single-threaded COM apartment


A customer encountered a hang caused by COM not pumping messages while waiting for a cross-thread operation to complete. They were using the task_sequencer class for serializing asynchronous operations on a UI thread they created to handle accessibility callbacks. The hang stack looked like this: ntdll!ZwWaitForMultipleObjects+0x4 KERNELBASE!WaitForMultipleObjectsEx+0xe0 combase!MTAThreadDispatchCrossApartmentCall+0x3a0 combase!CSyncClientCall::SendReceive2+0x65c combase!DefaultSendReceive+0x88 combase!CSyncClientCall::SendReceive+0x390 combase!CClientChannel::SendReceive+0xc0 combase!NdrExtpProxySendReceive+0x68 rpcrt4!NdrpClientCall3+0x764 combase!ObjectStublessClient+0x180 […]

.NET AI 模板现已提供预览版


本文翻译自Jordan Matthiesen的.NET AI Template Now Available in Preview 想要开始 AI 开发,却不确定从哪里入手?我给您带来了一个好消息——我们全新的 AI 聊天 Web 应用模板现已提供预览版!这个模板是我们不断努力的一部分,旨在通过在Visual Studio,Visual Studio Code 和 .NET CLI 中提供脚手架和指导,让使用 .NET 进行 AI 开发变得更容易上手。  请注意,该模板目前为预览版,未来版本可能会根据您的反馈和 AI 的快速发展进行调整。  立即安装模板  如果想要开始使用该模板的首个预览版,您需要在终端中安装 Microsoft.Extensions.AI.Templates。只需运行:  dotnet new install Microsoft.Extensions.AI.Templates 安装完成后,该模板即可在 Visual Studio,Visual Studio Code(需安装 C# Dev Kit)中使用,或者您也可以在工作目录中运行命令 dotnet new aichatweb 来创建它。  入门指南:.NET AI 聊天模板  .NET AI 聊天模板旨在帮助您快速构建一个基于 AI […]

Markdown for large text fields (private preview)


Adding Markdown capabilities to the work item is a long-standing request. We introduced Markdown for comments in early 2024, but due to the rollout of the New Boards Hub, we put the feature on hold. Today, we’re excited to announce a private preview for Markdown support in large text fields! 🎉 🦄 How it works […]

New, Simpler Solution File Format


For years, you’ve worked with Visual Studio’s solution file (*.SLN) format, and while it’s a core part of your project organization, we know the experience hasn’t always been smooth. Whether you’ve been modifying, maintaining, or trying to resolve merge conflicts, it’s often felt more like a hassle than it should be. We understand your frustrations, […]