How to install latest roslyn unity analyzers

The newest version of the roslyn unity analyzers are released before they appear as an upgrade within Visual Studio and adding them manually is a lot harder than I thought. NuGet doesn't seem to work. I also tried unpacking the NuGet file and editing the .csproj file directly. But the .csproj file is recreated each time you open Visual Studio, losing those changes. Thankfully there's a supported way.

In this post I show how to install the latest Roslyn Unity Analyzers into your unity project.

Adding Staticman comments to Gatsby

This site has been running on Gatsby for a little while now. Static sites bring all sorts of advantages with regards to speed, size etc, but they're not so great for dynamic content like comments.

Turns out there are lots of options when adding comments to Gatsby. I didn't want to spend any money, and I strongly resisted the urge to roll my own, so went for Staticman. Here's what I did.

Extension methods in JavaScript

Extension methods in .NET are one of my favourite parts of using C#. In this post, I'll show how you can achive the same thing in JavaScript by taking advantage of it's prototypal nature.

Be warned though, there are a couple of caveats that we need to be aware of though. Turns out it's quite easy to get unexpected bugs and break 3rd party libraries.

How to split git repo and keep history of multiple projects

Like them or loathe them, microservices are still all the rage. I'm seeing more and more companies go down this route. In particular, a common start to the journey into microservices is breaking up an existing monolith.

In this post, I'll show how you can split off several pieces of a large repository into a single, smaller repo while maintaining the git history. I'll be using AutoMapper as an example, but the same steps should apply if you need to split several project from a larger solution and keep the history.