Copy the .target and .dll files from the installer directory
Modify the lines at the top that look like and c*opy those .target and .dll files to your vendors folder next to the copied Microsoft.WebDeployment.targets-file your are editing*. Set the attr, AssemblyFile="Microsoft.Web.Publishing.Tasks.dll"
Add the line True to the initial PropertyGroup.
Set the OutputPath as you wish in the actual file/other tagets/other build-proj file.