It looks like the targets file is imported before the MSBuild Web targets, so CollectAdditionalFilesToRemoveFromTarget ends up being the first dependency of WebFileSystemPublishDependsOn, before the files have been copied to the temp directory. On a fresh publish, our call to CollectFilesInFolder fails because $(WPPAllFilesInSingleFolder) doesn't exist.
Solution would be to add PipelineMsdeploySpecificTransformPhase to the dependencies of CollectAdditionalFilesToRemoveFromTarget
From Helixbase/#20.
It looks like the targets file is imported before the MSBuild Web targets, so
CollectAdditionalFilesToRemoveFromTarget
ends up being the first dependency ofWebFileSystemPublishDependsOn
, before the files have been copied to the temp directory. On a fresh publish, our call toCollectFilesInFolder
fails because$(WPPAllFilesInSingleFolder)
doesn't exist.Solution would be to add
PipelineMsdeploySpecificTransformPhase
to the dependencies ofCollectAdditionalFilesToRemoveFromTarget