Pinning Cake Version

To pin the Cake version you will need to make sure that the packages.config file located in the tools directory is commited to your source control repository.

Pinning Cake version

To pin the Cake version you will need to make sure that the packages.config file located in the tools directory is commited to your source control repository. This will require some tweaks to your gitignore file. Below are the tweaks that will be required, the first line says to ignore all files underneath the tool directory and the second says to not ignore the packages.config file.

gitignore

tools/*
!tools/packages.config

Updating the Cake version after pinning

To update the version of Cake you are using after you have pinned it, all you need to do is update the version in the packages.config file to the newer version you would like to use.