Recently I was going through the motions upgrading an ASP.NET Core 2.0 website to 2.2. Overall the process was fairly straightforward, minus some gotchas. We were attempting to switch the website from targeting the full framework (net47
) to target netcoreapp2.2
but that caused a cascade of problems. One such problem was WCF. Today we’ll discuss using WCF with .NET Core and some of the gotchas you may run into.
Cookie management in DotNetCore web applications
For those of us used to cookies in traditional ASP.NET the switch to ASP.NET Core might leave us scratching our heads. In the old system we were able to directly add and remove cookies from both the request and response objects (for better or worse). This might have led to us writing and overwriting the same cookie multiple times during a request as different portions of code affected it. DotNetCore has changed the game and that’s a good thing, trust me. Today we’re going to learn a technique for cookie management in DotNetCore web applications.
Dependency Injection in a DotNetCore Console Application
In my last post I talked about creating a .NET Core console application for removing advertisements from a recorded stream. I glossed over some of the things I did in that application such as hooking up dependency injection and configuration management. Today I’m going to talk about implementing dependency injection in a DotNetCore console application.