As suggested by @dazinator in #87
If your msbuild task is built on the full desktop version of the msbuild assemblies (i.e if these references are the desktop version of msbuild:
https://github.com/GitTools/GitLink/blob/develop/src/GitLinkTask/GitLinkTask.csproj#L53) then dotnet build won't work as the dotnet cli tooling (an the version of msbuild used) will complain that it can't load the task, as the assembly is not compatible with netcore. I believe you have to build your task against the netstandard compatible msbuild assemblies - I.e: https://www.nuget.org/packages/Microsoft.Build.Framework/15.3.0-preview-000388-01
@AArnott , you think we can just port to the new dotnet tooling?