Easy Configuration Binding in ASP.NET Core - revisited
In this post I'm taking another look at using strongly typed configuration settings in ASP.NET Core, using a slightly simpler approach that foregoes using IOptions in favor of directly using a...
View ArticleCode Magazine Article: Securing IIS Web Sites with Let’s Encrypt Certificates
Lets Encrypt makes it very easy to create free TLS certificates for your Web site. In this CODE magazine article Rick reviews some of the history of Lets Encrypt and then shows how you can easily take...
View ArticleDistributing Content and Showing a ReadMe file in a .NET Core Nuget Package
.NET SDK style projects no longer support packaging NuGet content into projects as older projects did. So if you need to ship some dependent content with your library you need to find a different way...
View ArticleAccessing Configuration in .NET Core Test Projects
.NET Core provides a clean configuration system and in ASP.NET Core that code is automatically configured for you. In test and other non-Web projects however you have to manually configure the...
View ArticleCreating an ASP.NET Core Markdown TagHelper and Parser
A couple of months ago I wrote about creating a WebForms based Markdown control. This time around I'll build an ASP.NET Core MVC TagHelper that performs similar functionality for embedding Markdown...
View ArticleGetting the .NET Core Runtime Version in a Running Application
Microsoft has a long history of not providing a reasonable way of looking up the version of the runtime that is hosting your applications. .NET Core is no different and in this short post I show one...
View ArticleCreating a generic Markdown Page Handler using ASP.NET Core Middleware
I've been talking about Markdown a lot in recent blog posts and this time I'll cover a generic Markdown page handler that you just drop into any site to handle semi-static page editing more easily with...
View ArticleUpdating my AlbumViewer to ASP.NET Core 2.1 and Angular 6.0
Took some time to upgrade my AlbumViewer application to ASP.NET Core 2.1 RC and Angular 6.0. The .NET Core update was very smooth with only very minor adjustments required showing that Microsoft has...
View ArticleWeb Code is a solved Problem: How about fixing Web UI next?
These days most of the focus in Web development is on code - JavaScript code in particular. By comparison, the Web UI - HTML and CSS and the browser DOM and support features - feels like it has been...
View ArticleWhich .NET Core Runtime Download do you need?
.NET Core has a number of different runtime downloads that you can grab to install the runtimes and the SDK. It's not immediately obvious what you need, so since I just went through this myself and had...
View ArticleExplicitly Ignoring Exceptions in C#
This post falls in the stupid pet tricks category. In most applications I have a few places where I explicitly need to ignore errors. You know the stuff where you use a try/catch blocks without any...
View ArticleCreating a WPF ItemSource Length Filter Converter
The other day I was looking for a solution on how to display a WPF bound list and limit the number of items that are displayed in that list. I've run into this a few times and so I ended up creating a...
View ArticleWeb Assembly and Blazor: Re-assembling the Web
this post contains contains a subset from the forthcoming CoDe Magazine article in the September/October issueThe Web has been powered by a single language on the client since the very beginnings of...
View ArticleFixing Visual Studio Intellisense Errors
It's always fun when Visual Studio (ie @drunkvs) can't recite the alphabet backwards: The code below builds just fine when running through the compiler, but Visual Studio displays Intellisense errors...
View ArticleMarkdown and Cross Site Scripting
A while back I posted some ASP.NET Core Markdown related components in a Westwind.AspNetCore.Markdown library along with a couple of posts that describe how these various components are...
View ArticleGetting around Chrome POST XSS Protection
I've been working on a small string conversion utility for turning strings into various code formats. Specifically, I've been writing a number of Visual Studio Code templates and VS code requires that...
View ArticleTip: Open Visual Studio Code from Visual Studio as an External Tool
When working on .NET and mostly server side Web development I tend to use the full version of Visual Studio. I also use Visual Studio Code separately quite often for client side development as well as...
View ArticleSlow Connections with Sql Server
Argh... just fought with a small issue where connections to SQL Server were very slow on a new development box. Everytime I make a new SQL Connection there's a 2 second delay for the connection to...
View ArticleCreating an HTML Packager
As some of you probably know I've been building out my Markdown Editor, Markdown Monster with many enhancements around the process of Markdown editing. One task that many users perform is - not...
View ArticleCreating a .NET Global Tool from an existing Console Application
In my last post I discussed a small utility library I originally created for integration into Markdown Monster. It packages a Web HTML Url into a self contained HTML document or package that can be...
View Article