# .NET

The Problem with C# 10 Implicit Usings

I tried using C# 10 implicit using statements and found that they had a fatal flaw which meant you couldn't use them under certain circumstances

Open Telemetry for ASP.NET Core

The basics of how to configure Open Telemetry metrics, logs, and traces for ASP.NET Core and export the traces.

Deep Dive into Open Telemetry for .NET

How to use the Open Telemetry specification, tools and SDK's used to instrument, generate, collect, and export telemetry data (metrics, logs, and traces) using .NET and ASP.NET.

Automating .NET Security Updates

.NET SDK updates are released every few weeks. In this post, I talk about how you can automate them.

Unit Testing dotnet new Templates

It's difficult to know if your 'dotnet new' based project will work if they have lots of options, in this post I show how to unit test them.

The Dotnet Watch Tool Revisited

The dotnet watch tool is a file watcher for dotnet that restarts the application when changes in the source code are detected. You can use dotnet watch in Visual Studio by using the launchSettings.json configuration file.

ASP.NET Core Caching in Practice

How to use and implement Cache-Control, Cache-Control Immutable, E-Tag, Last-Modified and If-Modified-Since Caching HTTP headers in ASP.NET Core.

ASP.NET Core Lazy Command Pattern

Move your ASP.NET Core MVC action method logic into lazily loaded commands using the command pattern, to reduce Controller complexity.

dotnet new Feature Selection

How to add feature selection to your dotnet new template using symbols (bool, string, choice, computed) and pre-processor directives.

Cleaning Up CSPROJ

I show how to make the new Visual Studio 2017 .NET Core based csproj XML concise and pretty for hand editing.

Custom Project Templates Using dotnet new

How to create project templates using dotnet new and the template.json file. How to share project templates by creating NuGet packages.

Reactive Extensions (Rx) - Part 8 - Timeouts

Should you use Reactive Extensions (Rx) to do timeouts in .NET? It turns out it's better to use CancellationTokenSource in the Task Parallel Library (TPL).

SEO Friendly URL's for ASP.NET Core

An SEO friendly URL is human readable and gives your site a higher page rank. Learn how to implement SEO friendly URL's using ASP.NET Core.

Making Application Insights Fast & Secure

Implementing Application Insights into your ASP.NET Core application with performance and security as a top priority in this advanced scenario.

The Dotnet Watch Tool

The dotnet watch tool is a file watcher for dotnet that restarts the application when changes in the source code are detected.

Social TagHelpers for ASP.NET Core

Enhance the experience of sharing a page from your site through the use of social media meta tags implemented with ASP.NET Core TagHelpers.

Colorful.Console

Colorful.Console is a C# library that wraps around the System.Console class, making your console apps more colourful. Write ASCII art using Figlet fonts.

Logging with Serilog.Exceptions

Log exception details and custom properties that are not output in Exception.ToString() using Serilog.Exceptions for .NET.

Whats New in ASP.NET Core Boilerplate

With the release of ASP.NET Core Boilerplate, this post discusses what's new and what is currently missing due to ASP.NET Core still being in beta.

Canonical URL's for ASP.NET MVC

Use canonical URL's in ASP.NET MVC for better Search Engine Optimization (SEO) using ASP.NET Core Boilerplate and the RedirectToCanonicalUrlAttribute.

Building RSS/Atom Feeds for ASP.NET MVC

How to build a fully featured RSS/Atom feed for ASP.NET MVC, including Google's PubSubHubbub and the 'Subscribe to this feed' button.

C# 6.0 - Saving Developers From Themselves

C# 6.0 helps reduce human error and save developers from themselves using the nameof operator, string interpolation and the null-conditional operator.

Content Security Policy (CSP) for ASP.NET MVC

Content Security Policy (CSP) is a HTTP header which white-lists content the browser is allowed to load. This post discusses its application in ASP.NET MVC.

Securing the ASP.NET MVC Web.config

The web.config file is insecure in the default ASP.NET MVC project template. This post talks you through securing the ASP.NET MVC Web.config file.

Custom Visual Studio Project Templates

A guide to creating custom Visual Studio project templates in .zip and VSIX form and submitting them to the Visual Studio Gallery, so it can be downloaded.

Internet Favicon Madness (Updated)

Add favicon's to your website to support iOS, Android, Windows 7, Windows 8, Windows Phone and more. Find out where icons are used on each platform and how.

ASP.NET Core Boilerplate

ASP.NET Core Boilerplate is a professional ASP.NET MVC template for building secure, fast, robust and adaptable web applications or sites.

Elysium Extra 1.1 Released

Elysium Extra Version 1.1 is a Windows Presentation Foundation (WPF) SDK providing Metro styles for built in WPF controls and some custom controls.

GetHashCode Made Easy

Implementing GetHashCode is hard work and little understood. Learn how to implement GetHashCode as quickly and as simply as possible.

WPF Metro Part 4 - Elysium Extra

Elysium Extra is an excellent Windows Presentation Foundation (WPF) SDK providing Metro styles for built in WPF controls and some custom controls.

WPF Metro Part 3 - Elysium

Elysium is an excellent Windows Presentation Foundation (WPF) SDK (On CodePlex) providing Metro styles for built in WPF controls and some custom controls.

WPF Metro Part 2 - MahApps Metro

MahApps Metro is an excellent Windows Presentation Foundation (WPF) SDK providing Metro styles for built in WPF controls and several custom controls.

WPF Metro Part 1 - Modern UI for WPF

Modern UI for WPF is an excellent Windows Presentation Foundation (WPF) SDK providing Metro styles for built in WPF controls and several custom controls.