Blog

Blog posts on .NET, Azure, and more.

End to end testing web apps using Playwright and Azure DevOps

July 13, 2021 by Anuraj

Playwright AzureDevOps

This article will discuss about testing web applications with the help of Playwright.NET. And run the tests in Azure DevOps as part of CI/CD pipeline. Few months back I wrote an article on Testing Web Applications with PlayWright and C#, this was using a non Microsoft package - PlaywrightSharp. Right now Microsoft is offering an official package - Microsoft.Playwright. In this article you will learn about how to write test case using Microsoft.Playwright nuget package and how to deploy the test app and execute it as part of the CI / CD pipeline in Azure DevOps.

Open API support for ASP.NET Core Minimal API

July 08, 2021 by Anuraj

AspNetCore OpenApi Swagger WebApi

This article will discuss about implementing Open API (Swagger) for ASP.NET Core 6.0 minimal API. Today I saw one video from Maria Naggaga about Minimal APIs. She was showing a demo of Web API with swagger support. So thought I will implement the same. But it was not working for me. I was getting a lot of errors - both compile time and runtime. Then I looked into the ASP.NET Core source code and found one extension method which was not available in the runtime I was using. So I upgraded the version and installed the - 6.0.100-preview.6.21357.52 version and it started working. If you’re not using this version the code in this blog post will not work. You can download the latest version of .NET SDK from here - https://github.com/dotnet/installer#installers-and-binaries

Implementing Caching in ASP.NET Core with SQL Server

July 05, 2021 by Anuraj

AspNetCore Caching SqlServer

This article will discuss about implementing caching in ASP.NET Core using SQL Server Distributed Cache. Caching can improve the performance and scalability of an app, especially when the app is hosted by a cloud service or a server farm. In this implementation, you will be implementing distributed caching using SQL Server. In asp.net core distributed caching can be implemented with the help of IDistributedCache interface - you can start with MemoryCache in the development and in production you can switch to SQL Server or Redis or any other provider which implements IDistributedCache interface.

Developing and Deploying Azure Functions with GitHub Codespaces

July 03, 2021 by Anuraj

Azure Serverless GitHub Codespaces

This article will discuss about developing and deploying Azure Functions with GitHub Codespaces. Codespaces sets up a cloud-hosted, containerized, and customizable VS Code environment.

Integrating Tailwind into an ASP.NET Core Project

July 02, 2021 by Anuraj

AspNetCore Tailwind

This article will discuss about integrating Tailwind CSS into an ASP.NET Core Project. Tailwind CSS is a highly customizable, low-level CSS framework that gives you all of the building blocks you need to build bespoke designs without any annoying opinionated styles you have to fight to override.

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