Previously I wrote about having a Docker container with .NET Core 1 and 2 specifically to run a build with Cake on Circle CI 2.0. This was because Cake had been only able to run on .NET Core 1 while the rest of the .NET Core world had moved on to 2. I’m happy to say this is no longer the case.
Cake is now targeting .NET Standard 2.0 (and net46
for Omnisharp reasons) which allows me to drop the custom container I made just for Cake builds.
Now my CircleCI 2.0 uses the official Microsoft build .NET Core 2.0 SDK container with a small addition: unzip
. Maybe I’ll figure out how to drop this too one day:
version: 2 jobs: build: docker: - image: microsoft/dotnet:2.0.5-sdk-2.1.4 steps: - checkout - run: name: Install unzip command: | apt-get update apt-get install -y unzip - run: name: Build command: ./build.sh
It’s nice to be simple and rely on other people to maintain stuff for you instead of making my own container.
2 thoughts on “Cake on .NET Core 2.0! – A simpler Docker build for CircleCI 2.0”