• .NET Core 3.1 is LTS meaning it’s a great time to upgrade projects to the newest version. This article goes through the process of converting one of my existing .NET Core 1.1 projects to 3.1. I chose this project because updating from .NET Core 1.1 is a bit more complicated than 2.0. Also, the source code for this project is available, so anyone interested can view the commit log. The first step is installing the .
    approx. 4 minutes. Software    csharp asp.net .net core
  • Winter made me a little stir-crazy. In order to deflect the brain spirals, I wanted to make a little side project. It breaks my current cycle while feeling happy I accomplished something. I placed tight time constraints to ensure I’d complete it. coolurl.mattkruskamp.com Put in a URL that you’d like to hide. Enter the meta information you’d like to display on sites that show previews (like Slack). When you submit the form a new link will be generated with a copy function.
    approx. 2 minutes. Software    fun build csharp asp.net .net core
  • In a previous article I wrote about using middleware to add concurrency keys into an Asp.Net Core project. I’d like to extend that and show how to integrate a logging platform with concurrency keys. Our .Net Core logging framework of choice is Serilog. They have great integration with common logging protocols, and there stuff is very extensible. Logging with Serilog Serilog allows a developer to inject properties into the LogContext. The LogContext This allows us to take properties and map them to the log templates.
    approx. 2 minutes. Software    asp.net csharp .net core serilog
  • There are a few ways to create a Swagger client in .Net. For native Visual Studio users you can right-click on a project and generate them for the .Net Framework. However, I was looking for a way to consistantly generate a cross-platform client. Enter Autorest. In this article I’ll show how to create a Swagger-enabled .Net Core Api, and the build a cross-platform .Net client library that works in both .
    approx. 6 minutes. Software    .net core asp.net csharp swagger
  • When I put up a new website in Azure I tend to run into the same problems. Pointing DNS to the azure website nets a lot of urls. I’ll have mydomain.com, www.mydomain.com, mydomain.azurewebsites.net, and http/https versions of all of them. When talking SEO, you generally don’t want duplicate ways to get to the same content. Luckily, this can be solved relatively painlessly with url rewrites in the web.config. I put together a quick reference to handle some of the scenarios.
    approx. 2 minutes. Software    azure asp.net
  • I’m recently working with microservices in Asp.Net Core. With microservices, there tends to be a lot of network connectivity. One service potentially calls many other services to build a final response. It’s difficult to see where a request started, all the subsequent requests that happened back to the final result. Concurrency keys are a way to track a single request through all its dependancies. The idea is when a request is made a concurrency key is generated.
    approx. 2 minutes. Software    asp.net csharp .net core microservices
  • I really like my Macbook Pro. I’m also a developer who uses .Net a lot. This creates a problem for me since the .Net ecosystem is primarily a Windows one. Luckily, with the addition of .Net Core this is changing. .Net Core is open source, cross-platform, and supports many of the things us .Net developers are used to. I was wanting to test the cross-platform part so I set out to build a simple Asp.
    approx. 5 minutes. Software    csharp .net core asp.net
  • I want to note this was my first stab at getting a workflow for cross-platform libraries using the new technologies. I don’t consider any of these methods the correct way to do things, but they represent my experience with it so far. I’ve had a fairly unstable relationship with .Net recently. I support the push to make things cross-platform. I understand that change is tricky. However, I feel like there is a lack of the usual Microsoft prep-work when it comes to the new offerings.
    approx. 5 minutes. Software    asp.net .net core csharp
  • I develop on a MacBook Pro through Parallels 9. When I am working on web applications I use OS X Chrome for my debugging. The reason that I do this is that OS X renders fonts much closer to Photoshop. The problem is that every time I re-install my development tools I cannot remember how I got it working. Here are the steps so future Matt has an easier life.
    approx. 2 minutes. Software    asp.net
  • Creating Webparts

    Overview This is the first of a couple articles on managing web parts. I would like to keep these articles as simple and concise as possible. This tutorial simply covers how to place WebParts onto the screen. WebParts are a portion of Asp.Net that doesn’t receive very much love. From my experience they feel complex, and where to apply them in your application very ambiguous. Let’s just start with creating one.
    approx. 2 minutes. Software    csharp asp.net