'Could not load file or assembly GitVersionTask.MsBuild' when starting the platform through 'dotnet run' command

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:

1 Like