ChatGPT answers are cut off - how to fix

ChatGPT answers are cut off - how to fix

ChatGPT is a variant of the GPT-3 language model specifically designed for chatbot applications. It was trained on a large dataset of human-human con

Test your .NET exceptions with FluentAssertions

Test your .NET exceptions with FluentAssertions

Testing exceptions in your code is an important part of ensuring that your code is robust and behaves correctly under various scenarios. One way to t

Get Process Id by Name or Path with .NET

Get Process Id by Name or Path with .NET

Getting the process ID by the name or path of a process can be useful for a variety of reasons, such as being able to kill a hanging process or check

Avoid Caching with MemoryCache and GetOrCreate in .NET

Avoid Caching with MemoryCache and GetOrCreate in .NET

GetOrCreate or its asynchronous counterpart GetOrCreateAsync is an extension method to create a cache entry if it does not exist yet. This method tak

Validate Configuration Options with ASP.NET Core

Validate Configuration Options with ASP.NET Core

Configuring an ASP.NET Core application can be done in a variety of ways, including using command-line arguments, environment variables, and JSON fil

What is a NullReferenceException in .NET and how can it be avoided?

What is a NullReferenceException in .NET and how can it be avoided?

A NullReferenceException is a common error that occurs in .NET applications when a null reference is accessed as if it were an object. This can happe

Avoid hardcoded Microsoft URLs with Bicep environments

Avoid hardcoded Microsoft URLs with Bicep environments

Bicep has a great feature, which meanwhile also leads to warnings during execution if you don't pay attention to it: the avoidance of static values l

Create a Fulltext Catalog with EF Core .NET Migrations for MSSQL

Create a Fulltext Catalog with EF Core .NET Migrations for MSSQL

A full-text catalog in Microsoft SQL Server is a specialized storage that is used to store and manage full-text indexes for one or more tables in a d

My Top Microsoft Ignite 2022 News

My Top Microsoft Ignite 2022 News

Microsoft Ignite is a classic IT conference, but it also has news for us developers regarding innovations in our ecosystem. Enclosed are the news tha

Compile Linq Expressions to increase performance

Compile Linq Expressions to increase performance

Expressions are now an absolute part of a developer's everyday life in .NET thanks to Linq. However, due to their nature, expressions are not one of

DateTime vs. DateTimeOffset - UtcNow vs. Now

DateTime vs. DateTimeOffset - UtcNow vs. Now

.NET has two principal ways for handling times: DateTime and DateTimeOffset. The big deficit of DateTime, which was also recognized early in .NET 1.0

Microsoft is moving backend services to .NET 6

Microsoft is moving backend services to .NET 6

Microsoft has announced in an impressive blog post on the .NET DevBlogs that they have started an enterprise-wide migration to migrate backend servic

Health Check Ping with EF Core and MSSQL

Health Check Ping with EF Core and MSSQL

Sometimes it is quite useful to be able to send a query to the MSSQL server independently of its schema; for example to check if the server is princi

Why you should no longer use var in C#

Why you should no longer use var in C#

Beginning with C# 3, variables that are declared at method scope can have an implicit "type" var. An implicitly typed local variable is st

Embed Code into your blog - and also on Medium

Embed Code into your blog - and also on Medium

There are several ways to integrate source code including code highlighting into blogs, but GitHub Gists are by far the most convenient and best main

Requesting Microsoft Defender HTTP API with .NET and Refit

Requesting Microsoft Defender HTTP API with .NET and Refit

The Microsoft Defender API - or Azure Security Center API - is an interface to obtain security-related information from its M365 or Azure tenant. At

Configure Azure Active Directory for UserName-Password Login

Configure Azure Active Directory for UserName-Password Login

Attention: the following configuration is recommended only for testing or very trusted applications, since username and password could be intercepte

Parse HTML with .NET and the HtmlAgilityPack

Parse HTML with .NET and the HtmlAgilityPack

Parsing HTML with .NET can be a useful skill for any developer working on web applications or data analysis projects. One tool that can be particular

Use ASP.NET Core Options with an instance

Use ASP.NET Core Options with an instance

ASP.NET Core provides a built-in mechanism for configuring an application's options using the Options pattern. This pattern allows you to define a cl

Write XML Files asynchronously with .NET

Write XML Files asynchronously with .NET

Writing XML files asynchronously is a useful technique for improving the performance and scalability of your application. By using an asynchronous ap

Write Json Files asynchronously with .NET

Write Json Files asynchronously with .NET

Writing JSON files asynchronously is a useful technique for improving the performance and scalability of your application. By using an asynchronous a

ActivityPub Protocol

ActivityPub Protocol

ActivityPub is an open, decentralized social networking protocol that allows users to share content and interact with each other across the internet.

List local Windows Administator names with PowerShell

List local Windows Administator names with PowerShell

To list the local administator accounts, you can just use the group membership command Get-LocalGroupMember -Group "Administrators" Object

List local Windows Administator names with .NET

List local Windows Administator names with .NET

First, you need to install the NuGet Package System.DirectoryServices.AccountManagement Now you can open a context and get all members of the built-i

Enrich Token Claims with ASP.NET Core

Enrich Token Claims with ASP.NET Core

Often you have the requirement that you need or want to add additional claims to a token - either the, ID token or the access token. This is especial

Create Azure Active Directory App Registration with Azure CLI

Create Azure Active Directory App Registration with Azure CLI

There are now an insane number of ways to register applications in Azure Active Directory - but many ways are no longer supported or have been discon

.NET Updates März 2022

.NET Updates März 2022

Heute hat Microsoft die .NET Updates von März 2022 auf ihrem Blogpost veröffentlicht. Fix CVE-2020-8927: .NET Remote Code Execution Vulnerability Fi

20th Year! Happy Birthday .NET!

20th Year! Happy Birthday .NET!

20 years ago today .NET was released! Congratulations - you are the best ecosystem!

Serve a SPA like Angular or React on Azure App Service for Linux

Serve a SPA like Angular or React on Azure App Service for Linux

In many scenarios it can make sense to host single page applications via an Azure Web App, for example if you have many small applications - then the

ASP.NET Core 7 Roadmap veröffentlicht

ASP.NET Core 7 Roadmap veröffentlicht

Das Microsoft ASP.NET Team hat nun die Roadmap zu .NET 7 veröffentlicht. Der Release ist für November 2022 geplant. Der GitHub Link: ASP.NET Core Roa

.NET Updates Februar 2022

.NET Updates Februar 2022

Heute hat Microsoft die .NET Updates von Februar 2022 auf ihrem Blogpost veröffentlicht. Fix CVE-2022-21986: .NET Denial of Service Vulnerability .N

Die .NET UI Technologieübersicht 2022

Die .NET UI Technologieübersicht 2022

Windows Forms aka WinForms Windows Forms ist eine sehr stark veraltete Technologie, die Aufgrund ihrer Einfachheit jedoch immer noch sehr beliebt ist

Validate Bicep config during CI/CD with Azure DevOps

Validate Bicep config during CI/CD with Azure DevOps

Bicep scripts are ideally part of the source code and can also be used as such in the build process of the application. This allows us to perform pot