Cannot build on windows
From both the command line and VisualStudio I get that error.

MSBuild version 17.4.0+18d5aef85 for .NET
  Determining projects to restore...
  All projects are up-to-date for restore.
  Cannot find the .git directory
C:\Users\myuser\.nuget\packages\gitversion.msbuild\5.11.1\tools\GitVersion.MsBuild.targets(9,9): error MSB3073: The com
mand "dotnet --roll-forward Major "C:\Users\myuser\.nuget\packages\gitversion.msbuild\5.11.1\tools\netcoreapp3.1/gitver
sion.dll" "C:\DEV\miningcore-master\src\Miningcore"  -output file -outputfile obj\gitversion.json" exited with code 1.
[C:\DEV\miningcore-master\src\Miningcore\Miningcore.csproj]