Microsoft .NET

Microsoft .NET | News, how-tos, features, reviews, and videos

women spinning plates asynchronous programming synchrony multi tasking by graemenicholson getty ima
man running across finish line

stock decline

Report finds few open source projects actively maintained

Sonatype’s annual software supply chain analysis finds open source project maintenance in decline, while 1 in 8 open source downloads have a known risk.

toned low angle view of a football player catching the ball stk17248spo

How to use TinyIoC in ASP.NET Core

TinyIoC is a lightweight and fast inversion of control container that makes dependency injection simple and easy. Here’s how to take advantage of it in ASP.NET Core applications.

shutterstock 344519045 whiteboard with colored post-it notes blue yellow orange

How to implement in-memory caching in ASP.NET Core

You can take advantage of the decorator design pattern to add in-memory caching to your ASP.NET Core applications. Here’s how.

binary laptop display against a binary background

Microsoft’s F# refines loops in computation expressions

The while! keyword is geared for clarity and expressiveness and will appear in F# 8.

open doorway with sunlight shining through

Build an API gateway using YARP in ASP.NET Core

Take advantage of an API gateway to provide a single point of entry to your back-end services and keep your services secure. YARP makes it easy.

Stacking. Stacked building blocks.

How to build a microservice in ASP.NET Core

A microservices architecture can help you build applications that are flexible, scalable, and easy to maintain. Here’s how to get started with microservices in ASP.NET Core.

facade of heavy duty bank vault

How to improve API security in ASP.NET Core

Take advantage of authentication and authorization, API keys, rate limiting, CORS, API versioning, and other recommended practices to build secure and robust APIs in ASP.NET Core.

binoculars looking watch outlook future

The key new features and changes in .NET 8

With Microsoft’s yearly .NET release just around the corner, it’s time to start thinking about the changes you will need to make to your code.

data structure / data explosion / volume / velocity

How to map object relationships using Dapper in ASP.NET Core

Take advantage of Dapper to create one-to-one, one-to-many, and many-to-many entity relationships in your ASP.NET Core applications.

network speed

How to improve data access performance in EF Core

Take advantage of these 10 strategies to improve data access performance when using Entity Framework Core in your data-driven .NET applications.

stage lights action theatre

Visual Studio 2022 updates spotlight productivity

Visual Studio 2022 17.7 and a preview of 17.8 promise to streamline development with enhancements to diffs, comparisons, searches, pull requests, unit tests, and more.

shutterstock 530678500 ancient Egyptian hieroglyphs carved in stone

How to use Fluent Assertions in C#

When unit tests fail, they should clearly explain why. Take advantage of the Fluent Assertions library to write unit test methods that are simple, readable, concise, and expressive.

young woman holding string of lights innovation creativity digital transformation by matheus bertel

Microsoft previews new F# syntax for string interpolation

Improved syntax makes it easier to work with text like CSS that contains many curly braces, while maintaining backwards compatibility with F#’s triple-quoted strings.

avoid detour side step trap hole in floor arrow by lucadp getty images

How to handle null values in C#

Null pointer exceptions are no fun. You can avoid them and keep your code clean and maintainable by using these techniques to elegantly handle null values in C#.

detour sign

C# 12 boosts AOT compilation

Latest C# 12 preview introduces an experimental feature that allows generators to reroute code to provide context-specific optimization.

shutterstock 165430076 fishing fly fisherman fly casting in misty river in the woods

How to use the is and as operators in C#

Take advantage of the is and as operators in C# to perform casting operations elegantly and write code that is well structured, concise, and maintainable.

Conceptual image of an individual user working with an extruded virtual display.

Microsoft improves F# language hints in Visual Studio

Microsoft is previewing inline type hints, inline parameter name hints, and return type hints for the F# programming language in Visual Studio.

Conceptual cybersecurity system locks down a network of interconnected elements.

How to use API keys to secure web APIs in ASP.NET Core

Take advantage of API key authentication to control the access of applications and services to your Web APIs in ASP.NET Core.

Load More