Announcing the Habit Tracker Beta Release

I have been working on an end-to-end sample application for .NET... from Blazor on the frontend to MinimalApi on the backend. And, I'm ready to have some beta testers using the project - Habit Tracker app (Getting Started page). This is a full application that allows users to define categories and habits that they wish … Continue reading Announcing the Habit Tracker Beta Release

How-To: Use Bootstrap 5.3 Built-in Icons in Blazor

Starting with version 5, Bootstrap introduced a rich set of SVG-based icons—lightweight, scalable, and perfect for modern web applications. Since the default Blazor WebApp templates already include Bootstrap, integrating these icons is a simple way to enhance your UI with clear, consistent visual elements. Using icons effectively can make your Blazor apps more intuitive and … Continue reading How-To: Use Bootstrap 5.3 Built-in Icons in Blazor

Using Scalar with .NET9 WebApi Projects

With the latest release of .NET, you will notice that new WebApi projects no longer integrate with Swagger to provide a documentation web page. In .NET 9, Microsoft made a strategic decision to remove the default inclusion of Swashbuckle.AspNetCore (commonly known as Swagger) from Web API project templates. This shift is primarily due to the … Continue reading Using Scalar with .NET9 WebApi Projects

CSS Accent-color Element

This CSS rule applies the accent color uniformly across the entire webpage for interactive elements like links and buttons. This means you don’t have to style each element individually every time you want to use this color, ensuring consistency throughout your site. body { accent-color: green; }

How-To: Create Blazor Dark-Mode App with Bootstrap 5.3

Many web applications today support dark-mode display because users (and especially developers) enough the benefit of reading content with a dark background. Blazor apps that are built with Bootstrap 5.3 can easily support dark mode in their applications. In this article, we will only focus on defaulting the application to dark-model... a future article will … Continue reading How-To: Create Blazor Dark-Mode App with Bootstrap 5.3

Central Package Management with NuGet

Managing dependencies across multiple projects can get unwieldy, especially as the project count grows. NuGet's Central Package Management (CPM) feature aims to simplify this by letting developers define package versions in a single location. With CPM, you avoid the redundancy of specifying package versions in each project individually. Here, we’ll explore how to set up … Continue reading Central Package Management with NuGet

GitHub Action to Publish to NuGet.Org

Publishing a NuGet package to nuget.org can be automated using GitHub Actions, which is a powerful tool for continuous integration and continuous deployment (CI/CD). This guide will walk you through the steps required to publish your NuGet package automatically every time you push a code update to a specific branch in your GitHub repository. Prerequisites … Continue reading GitHub Action to Publish to NuGet.Org

“NuGet Why” Command: Understanding Dependency Graphs in .NET Projects

Introduction Managing dependencies in .NET projects can sometimes be a challenging task, especially when trying to understand how various packages interrelate in your solution. Enter the dotnet nuget why command—a powerful tool introduced in the .NET 8.0.4xx SDK and later versions. This command allows you to visualize and analyze the dependency graph for a specific … Continue reading “NuGet Why” Command: Understanding Dependency Graphs in .NET Projects

Why Should I Care About Functional Programming in C#?

Functional programming (FP) is a programming paradigm that emphasizes immutability, first-class functions, and expressions over statements. While C# is primarily an object-oriented language, it has incorporated many functional programming features over time, particularly since C# 3.0 and with further enhancements in later versions. Here's why you should care about functional programming when working with C#: … Continue reading Why Should I Care About Functional Programming in C#?

Creating a Fluent API in C#

Introduction Fluent API is a design pattern that provides more readable and intuitive code by chaining method calls together. This type of API is commonly used in implementing the Builder design pattern. This style enhances code readability, reduces boilerplate, and makes APIs easier to use. Fluent APIs are commonly seen in libraries like LINQ and … Continue reading Creating a Fluent API in C#