With the release of .NET Core SDK 3.1.200, GitVersionTask fails the VC platform build with messages like The "WriteVersionInfoToBuildLog" task failed unexpectedly
and Could not load file or assembly GitVersionTask.MsBuild
.
The current workaround is to set the environment variable MSBUILDSINGLELOADCONTEXT=1
The link to the original issue: