There is a compatibility issue with GitVersionTask in combination with MSBuild 16.5 and .NET Core 3.1.200, which prevents building the project.
The build in GitHub actions works because the version vars get injected via environment.
Must be updated as soon as the fix is released.