MSBuild Gitlab CI Docker
For some reason, and I’m assuming it has something to do with licensing, Microsoft doesn’t actually provide an official “MSBuild” docker image. However, they do provide a really simple 5 step process to build one yourself. Generally this wouldn’t be an issue at all however there are some quirks in the GitLab CI workflow that don’t actually allow you to build and use a Dockerfile in a pipeline, it has to be pulled from a registry or a local image. I’ll cover both scenarios in this post.