Note, I recommend doing that in your local build.cmd

But just make GitVersion the first step in TeamCity and use the `/output buildserver` switch. Which will write our system variables which will be passed to MSBuild