Blog
Blog posts on .NET, AI, Azure, and more.
Build a .NET AI vector search app
December 12, 2025 by Anuraj
dotnet aspnetcore sqlserver rag efcore
In this blog post, we’ll build a .NET console application that performs semantic search using SQL Server 2025 as a vector store. We’ll also learn how to generate embeddings from user queries and leverage those embeddings to retrieve the most relevant results directly from SQL Server 2025.
Generating Playwright Tests with GitHub Copilot and Playwright MCP server
December 06, 2025 by Anuraj
Playwright MCP GitHub Copilot
In this blog post, we will explore how to generate Playwright Tests with GitHub Copilot and Playwright MCP server. MCP is protocol developed by Antropic - which helps AI Agents or LLMs to interact with external APIs or services. In this we will be using GitHub Copilot Agent mode and Playwright MCP server.
Working with SQL Server 2025 in AI Chat Web
December 05, 2025 by Anuraj
AspNetCore DotNet AI RAG SqlServer
Recently Microsoft introduced Vector data type in SQL Server 2025. In this blog post we will customize the AI Chat Web Project from Microsoft to use SQL Server 2025, instead of SQLite. First create a project using the following command dotnet new aichatweb --name ChatApp. By default it will be using Sqlite for storing the embeddings. To use Sql Server 2025, we need to add the reference of Microsoft.SemanticKernel.Connectors.SqlServer. We can do this using dotnet add package Microsoft.SemanticKernel.Connectors.SqlServer --prerelease. I am using Docker and VS Code SQL Server extension to provision and run SQL Server 2025.
Building a custom MCP server using Azure Functions
November 23, 2025 by Anuraj
DotNet MCP Azure
The Model Context Protocol (MCP) is designed to make it easier to build intelligent integrations between large language models (LLMs) and cloud services. When you pair MCP with Azure Functions, you unlock a powerful combo: serverless tools that LLMs can securely call in real time. By the end, you’ll see how MCP + Azure Functions can streamline workflows, boost productivity, and open up new possibilities for developers working with AI. For C#, the Azure Functions MCP extension supports only the isolated worker model. First create an Azure Function with C# Isolated mode, I am using .NET 10 as the runtime. Once it is created and we are able to run properly.
Validation support in Minimal APIs
November 19, 2025 by Anuraj
AspNetCore DotNet
In .NET 10, ASP.NET Core team introduced validation support with Data Annotations validation attributes. In this blog post we will learn how to enable this and how to use custom validation. For ASP.NET Core, we just need to use the validation attributes, it will automatically enable the validation for the model properties. But in ASP.NET Core Minimal APIs, we need to add the validation services to the IServiceCollection - builder.Services.
Copyright © 2025 Anuraj. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Powered by Jekyll. Hosted with ❤ by GitHub