Reputation: 15
I am getting the following error when I am queuing a build in TFS 2017.
"Microsoft.Web.Publishing.targets 3009,5): Error : Web deployment task failed. (Package file 'C:\agent_work\3\s\TestApp\TestApp\release' does not have a .zip file name extension.)"
I am not sure why I am getting this error. I have hosted agent on the TFS server. I created the build definition according to this video:
www.youtube.com/watch?v=HjD4A-yeFTE
Does somebody have any idea? Appreciate your help!
Upvotes: 1
Views: 1597
Reputation: 30392
Test at my side and everything works correctly. Please try below items to narrow down the issue:
/p:PackageLocation="$(build.artifactstagingdirectory)\\"
, then
specify the Copy Root path as $(build.artifactstagingdirectory)
in Copy and Publish Build Artifacts
task..zip
extension in MSBuild Argument in the
Build Definition.
p:PackageLocation="$(BuildConfiguration)\package.zip
If still can not resolve the issue, just share the build logs here for further troubleshoot.
Upvotes: 3