Blog

Blog posts on .NET, Azure, and more.

How to use API versioning in ASP.NET Core

June 20, 2024 by Anuraj

AspNetCore DotNet

In this blog post, we’ll learn how to implement API versioning with ASP.NET Core 8.0 Web API. I wrote a blog post long back on how to implement versioning in ASP.NET Core Minimal APIs. In this blog post we will learn how we can implement versioning in ASP.NET Core Web API with Controllers.

Building .NET Aspire applications with Visual Studio 2022

May 30, 2024 by Anuraj

AspNetCore dotnet Aspire

In this blog post, we’ll learn how to create a .NET Aspire applications with Visual Studio 2022. Microsoft announced general availability of .NET Aspire in Microsoft Build 2024.

Upgrading ASP.NET Core 7.0 to ASP.NET Core 8.0

April 12, 2024 by Anuraj

AspNetCore

In this blog post, we’ll how we can upgrade ASP.NET Core 7.0 to ASP.NET Core 8.0. Microsoft will stop supporting .NET Core 7.0 on May 14th 2024. In this post I will be upgrading a ASP.NET Core Web API application which uses .NET 7.0, EF Core and MySql provider. Also I will be using Azure Open AI and Serilog for logging.

Working with Database in .NET Aspire

April 05, 2024 by Anuraj

AspNetCore Aspire CloudNative MongoDb

In this blog post, we’ll explore how we can work with Mongo databases in .NET Aspire. For working with Mongo database, we need to run Docker desktop. First we need to launch Docker desktop.

Working with Angular applications with .NET Aspire

March 22, 2024 by Anuraj

AspNetCore Aspire CloudNative Angular

In this blog post, we’ll explore how we can work with Angular applications with .NET Aspire. We can install .NET Aspire using the dotnet workload install aspire command. Next we can create the .NET Aspire application using the following command - dotnet new aspire --name Weatherforecast --output Src. This command will create two projects - Weatherforecast.AppHost and Weatherforecast.ServiceDefaults. Next we can add the API application, for creating the API application, we can create ASP.NET Core Minimal API, with the command dotnet new webapi --name Weatherforecast.Api --output Src\Weatherforecast.Api. We may need to modify the solution file and add the API application with the command - dotnet sln add .\Weatherforecast.Api\, otherwise it may not load in VS Code.

Copyright © 2024 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