.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

.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

.NET Updates Dezember 2021

.NET Updates Dezember 2021

Heute hat Microsoft die .NET Updates von Dezember 2021 auf ihrem Blogpost veröffentlicht. Fix CVE-2021-43877: ASP.NET Core Information Disclosure Vu

ThrowAwayLogger: easy log mocking in .NET

ThrowAwayLogger: easy log mocking in .NET

In the past we always had often problems to manage logging mechanisms in unit tests, so I wrote ThrowAwayLogger that solves the problem. // field pri

.NET Updates November 2021

.NET Updates November 2021

Gestern hat Microsoft die .NET Updates von November 2021 auf ihrem Blogpost veröffentlicht. Dieses Update enthält nur die aktualisierten Laufzeitumge

.NET Updates Oktober 2021

.NET Updates Oktober 2021

Heute hat Microsoft die .NET Updates von Oktober 2021 auf ihrem Blogpost veröffentlicht. Fix CVE-2021-41355 | .NET Core Information Disclosure Vulne

Copy text into the Windows Clipboard with .NET

Copy text into the Windows Clipboard with .NET

To copy text to the clipboard with .NET Framework, usually you have used .NET wrapper of Windows Forms: System.Windows.Forms.Clipboard.SetText Howev

Bad Gateway error on App Service deployment

Bad Gateway error on App Service deployment

Our deployment ran smooth for weeks. But suddenly and without warning and only for one app, the "Bad Gateway" error appeared when deploying

Class vs. Struct performance in .NET

Class vs. Struct performance in .NET

In addition to classes that represent reference types, there are also structs that represent value types. But how do the two different structures beh

.NET Updates September 2021

.NET Updates September 2021

Heute hat Microsoft die .NET Updates von September 2021 auf ihrem Blogpost veröffentlicht. OS Lifecycle update: Aktualisierung der Docker Container

AssemblyMetadata - Build Time with Source Code Generators

AssemblyMetadata - Build Time with Source Code Generators

.NET has for some time source code generators: a mechanism with which it is possible to generate source code at compile time, as has been known, for

.NET Updates August 2021

.NET Updates August 2021

Heute hat Microsoft die .NET Updates von August 2021 auf ihrem Blogpost veröffentlicht. Fix CVE-2021-34485: .NET Core Information Disclosure Vulnera

.NET Updates Juli 2021

.NET Updates Juli 2021

Heute hat Microsoft die .NET Updates von Juli 2021 auf ihrem Blogpost veröffentlicht. Windows Arm64 .NET July 2021 Updates – 5.0.8 and 3.1.17

Parse HTTP User Agents with ASP.NET Core

Parse HTTP User Agents with ASP.NET Core

In my last blog post I shared why we wrote our own user agent parser (mycsharp/HttpUserAgentParser) in .NET (reason: performance). This is now about

.NET Updates Juni 2021

.NET Updates Juni 2021

Gestern hat Microsoft die .NET Updates von Juni 2021 auf ihrem Blogpost veröffentlicht. CVE-2021-31957: ASP.NET Denial of Service Vulnerability Fix

Fast Parsing HTTP User Agents with .NET

Fast Parsing HTTP User Agents with .NET

While analyzing nearly 120 million requests, we noticed that one thing was dragging down our performance: parsing user agents for detecting bots and

Plugin Mechanism with Parts in ASP.NET Core

Plugin Mechanism with Parts in ASP.NET Core

A plugin-like mechanism is already built into ASP.NET Core, and is called Parts or Application Parts. In principle, it is a discovery mechanism to be

.NET Updates Mai 2021

.NET Updates Mai 2021

Heute hat Microsoft die .NET Updates von Mai 2021 auf ihrem Blogpost veröffentlicht. OS Lifecycle update Behavioral change in Asp.Net 2.1 Installers

.NET Updates April 2021

.NET Updates April 2021

Heute hat Microsoft die .NET Updates von April 2021 auf ihrem Blogpost veröffentlicht. Diesmal wurden vor allem die Abhängigkeiten wie Docker Images

OpenTelemetry .NET 1.0 veröffentlicht!

OpenTelemetry .NET 1.0 veröffentlicht!

Gestern hat Microsoft die erste stabile Version 1.0 von OpenTelemetry .NET veröffentlicht. Was ist OpenTelemtry? OpenTelemetry ist eine Initiative de

Die Roadmap für Azure Functions mit .NET 5 und .NET 6

Die Roadmap für Azure Functions mit .NET 5 und .NET 6

Gestern wurde von Anthony Chu die Roadmap für Azure Functions mit .NET 5 und .NET 6 vorgestellt. Die wichtigsten Punkte will ich kurz zusammen fassen

.NET 6 Preview released

.NET 6 Preview released

Microsoft hat gestern die erste Preview für .NET 6 veröffentlicht, das im November 2021 als stabile Version kommen wird. Anbei die aus meinen Augen w

.NET Updates März 2021

.NET Updates März 2021

Gestern hat Microsoft die .NET Updates von März 2021 auf ihrem Blogpost veröffentlicht. CVE Security Update Neue Visual Studio Version Lifecycle Upd

.NET Updates Februar 2021

.NET Updates Februar 2021

Gestern hat Microsoft die .NET Updates von Februar 2021 auf ihrem Blogpost veröffentlicht. CVE Security Update Neue Visual Studio Version Lifecycle

Loggen eigener Werte mit Azure Application Insights

Loggen eigener Werte mit Azure Application Insights

Um eigene Werte in Application Insights loggen zu können, muss ein eigener ITelemetryInitializer erzeugt werden. Dieser dient nun dazu, dass der ents

Loggen des User Agent mit Azure Application Insights

Loggen des User Agent mit Azure Application Insights

Standardmäßig wird der User-Agent des HTTP-Requests nicht von der Application Insights Middleware des ASP.NET SDKs gespeichert; vermutlich aufgrund d

Azure Active Directory nun auf .NET Core!

Azure Active Directory nun auf .NET Core!

Azure Active Directory gehört zu den größten Anwendungen im Azure Ökosystem und vermutlich zu einer der größten Anwendungen der Welt. Microsoft hat n

.NET Updates Januar 2021

.NET Updates Januar 2021

Gestern hat Microsoft die .NET Updates von Januar 2021 auf ihrem Blogpost veröffentlicht. CVE Security Update Neue Visual Studio Version .NET Core 2

Loggen des Referers mit Azure Application Insights

Loggen des Referers mit Azure Application Insights

Standardmäßig wird der Referer, also die Quelle des Aurufs des HTTP-Requests, nicht von der Application Insights Middleware des ASP.NET SDKs gespeich

.NET Updates Dezember 2020

.NET Updates Dezember 2020

Gestern hat Microsoft die .NET Updates von Dezember 2020 auf ihrem Blogpost veröffentlicht. Diesmal gehört dazu maßgeblich das .NET Update 5.0.1, das

.NET Updates kommen mit dem Windows Update!

.NET Updates kommen mit dem Windows Update!

Microsoft hat am Donnerstag den zahlreichen Wunsch erfüllt und angekündigt, dass .NET Runtime Updates auf den Windows-Client Versionen ab diesen Deze

.NET Updates November 2020

.NET Updates November 2020

Heute hat Microsoft die .NET Updates von November 2020 auf ihrem Blogpost veröffentlicht. Neue Visual Studio Version Neue Docker Images .NET Core

Versenden von E-Mails mit DKIM mit .NET und MailKit

Versenden von E-Mails mit DKIM mit .NET und MailKit

Wer heute automatisierte E-Mails versenden will, die nicht unbedingt in jedem Spam-Filter hängen bleiben sollen, der kommt kaum an DKIM vorbei. DKIM

Flexibler und einfacher E-Mail Versand mit Mimekit in .NET

Flexibler und einfacher E-Mail Versand mit Mimekit in .NET

Die .NET MailMessage Klasse existiert bereits seit .NET 2.0 und hat entsprechend einen historischen Rucksack mit sich zu tragen. Die letzten Jahre ha

.NET Updates September 2020

.NET Updates September 2020

Gestern hat Microsoft die .NET Updates von September 2020 auf ihrem Blogpost veröffentlicht. CVE Security Update Neue Visual Studio Version Neue Doc

.NET 5 erhält Performance-Boost auf Raspberry und der ARM64-Familie

.NET 5 erhält Performance-Boost auf Raspberry und der ARM64-Familie

ARM64 basierte CPUs werden immer beliebter und verbreiten sich auch im Consumer-Umfeld - nicht zuletzt durch den Raspberry, der zwar primär im ARM32-

C# 9 - Was gibt's Neues?

C# 9 - Was gibt's Neues?

Noch fünf Monate, dann erscheint C# 9 - doch was gibt es eigentlich alles Neues? Und für wen sind all die Neuerungen gedacht? Release mit .NET 5 Der

Microsoft Build 2020 - Neues für .NET Entwickler

Microsoft Build 2020 - Neues für .NET Entwickler

Am heutigen Dienstag um 17 Uhr deutscher Zeit startete die Microsoft Build - dieses Jahr als kostenloser Online-Event statt einem kostenpflichtigen O

Build and Test .NET Core with GitHub Actions

Build and Test .NET Core with GitHub Actions

What is GitHub Actions? GitHub Actions is the counterpart to Azure DevOps Pipelines: a fully configurable automation tool for setting up workflows, s

Use hCaptcha with dotnet and ASP.NET Core

Use hCaptcha with dotnet and ASP.NET Core

Many websites protect themselves from automated access with reCaptcha, a Google company. The top dog can be found on almost every website. About hCap

Was erwartet uns mit ASP.NET Core 5?

Was erwartet uns mit ASP.NET Core 5?

Nachdem Microsoft nun die erste Preview von .NET 5 veröffentlicht hat stellt sich die Frage: was kommt eigentlich mit ASP.NET Core 5? Bleibt der Name

.NET 5 Preview 1 veröffentlicht

.NET 5 Preview 1 veröffentlicht

Microsoft hat heute in einem Blog Post bekannt gegeben, dass nun die erste Preview für .NET 5 als SDK zur Verfügung steht. Vor einigen Tagen war scho

Wie schütze ich das Ökosystem meines Projekts?

Wie schütze ich das Ökosystem meines Projekts?

Kaum ein wirkliches Projekt - sei es im Bereich von .NET, Angular, Node, Java oder anderen Sprachen - kommen heutzutage ohne externe Abhängigkeiten a

Enforce english documentations on Microsoft Docs

Enforce english documentations on Microsoft Docs

Microsoft translates the texts of its documentations by machines - and often this unfortunately still ends in total gibberish. But especially for dev

Format DateTime to ISO 8601

Format DateTime to ISO 8601

ISO 8601 is a general, international standard on how the complex representation of time stamps can be formulated in a general way - including the con

Clone entity values with Entity Framework

Clone entity values with Entity Framework

Often you want to duplicate entities or their values in order to save an entity with a new ID. But what is the best way to do this? There are many ex

Expose OpenSearch Endpoint with an ASP.NET Core Controller Action

Expose OpenSearch Endpoint with an ASP.NET Core Controller Action

OpenSearch OpenSearch is a standard that has existed for about 15 years and is used by search engines and Browsers. This standard was developed by Am

Entity Framework 3 - Migrations

Entity Framework 3 - Migrations

Install EF Core 3 Migration tools The tooling of the Entity Framework Core Migrations comes via NuGet (and dotnet tooling). dotnet tool install --glo

Custom PasswordHasher in ASP.NET Core Identity

Custom PasswordHasher in ASP.NET Core Identity

In the ASP.NET Core Identity environment, the PasswordHasher is responsible for securely storing the password and performing password entry checks. I

Unit Testing with Entity Framework Core 3

Unit Testing with Entity Framework Core 3

This post covers the basic structure for unit tests with Entity Framework Core. Note: Unit tests are only there to test the respective logic. Unit t

Custom Model Binders in ASP.NET Core

Custom Model Binders in ASP.NET Core

What are Model Binders? ModelBinders are required in ASP.NET Core to pass parameters from HTTP requests into a controller action method. For example,

Use SignalR in MediatR Notifications

Use SignalR in MediatR Notifications

SignalR is a wonderful, easy and fast way to provide users with push messages - and is also built into ASP.NET Core 3. In this short code sample I s

Read System Properties like CPU Temperatures with .NET Core

Read System Properties like CPU Temperatures with .NET Core

Through a forum post I discovered the NuGet package OpenHardwareMonitorLibCore, and wanted to test it. Apparently this is a wrapper of a very popula

Using ASP.NET Core 3 in .NET libraries

Using ASP.NET Core 3 in .NET libraries

With the release of ASP.NET Core 3, Microsoft has also changed the way how to use and reference ASP.NET Core dependencies. In the past you could use

Azure IoT: send messages with C#

Azure IoT: send messages with C#

Requirements You must have created an IoT Hub in Azure. You must have created a device in your created Azure IoT Hub. You need the connection string

Fast SQL-Insert with C# and SqlBulkCopy

Fast SQL-Insert with C# and SqlBulkCopy

In .NET, there is a very fast and easy way to pump a variety of entities into an SQL database: SqlBulkCopy public void BulkInsert<TEntity>(stri

Load an image into a byte-array with C#

Load an image into a byte-array with C#

This pretty simply snippet exports your Image into a byte-array. public static byte[] ToByteArray(this System.Drawing.Image image) { using(Memory

Download a file with .NET

Download a file with .NET

The most current and currently recommended way to download .NET Framework, .NET Standard or .NET Core files from the Internet is the HttpClient class

Einfaches WCF-Beispiel ohne komplizierte Config

Einfaches WCF-Beispiel ohne komplizierte Config

Unter anderem durch die Aktivität im myCSharp.de-Forum ist mir aufgefallen, dass viele Entwickler doch Probleme mit der Konfiguration von WCF-Dienste