Blog

Blog posts on .NET, Azure, and more.

Passing images to LLMs in C# with Microsoft.Extensions.AI

September 22, 2025 by Anuraj

dotnet csharp AI

In this blog post, we’ll explore how to send images to LLMs for analysis in C# with Microsoft.Extensions.AI. Recently while working on chat application, I realize I couldn’t find any samples where we will be sending images to multi model LLMs to analyze the image. So I explored a little bit. Initially I used to convert the image to base64 and send it along with the prompt, but it didn’t worked as expected because of the token window constraints. Then I explored a little bit more and found this.

Working with Docker model Runner from .NET

September 18, 2025 by Anuraj

dotnet csharp docker AI

In this blog post, we’ll explore how to enable model runner in Docker and interact with it from dotnet applications. The Docker Model Runner is a plugin for Docker Desktop that allows us to manage and run AI models directly from the command line. This plugin enables us to pull models from Docker Hub, run them interactively or with a prompt, and manage local models by adding, listing, or removing them.

Introducing SLNX - The New Solution File Format for .NET

September 08, 2025 by Anuraj

dotnet csharp

With .NET 9 Microsoft introduced slnx file format - which is a replacement for the existing sln file. In this blogpost we will explore why we want to use it and the advantages of using it.

Using Central Package Management with .NET solutions

August 30, 2025 by Anuraj

dotnet csharp

Working on a big .NET solution with tons of projects? Tired of juggling different package versions? Central Package Management keeps everything in one spot so all our projects use the same version-simple and hassle-free. In this blog post we will explore how to use Central Package Management feature. When we use this feature, we won’t be using the version attribute in the project references, instead we will be keeping the references globally for all the projects in the solution. And if we require a specific version for a project we can override that as well.

Running C# files with dotnet run command

July 30, 2025 by Anuraj

dotnet csharp

In .NET 10 Preview 4, Microsoft introduced a new feature in .NET which helps to run .net apps directly using dotnet run command. Earlier versions, like .NET 8 or .NET 9, if we want to try a C# code snippet, we need to create a console app or webapp or webapi project and test the code. With this new feature, we can create the C# file and try it with dotnet run command.

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