Web deploy build package cannot find zip

I have a build that first restore nuget packages then its building csproj with msbuild in target package, then in artifacts I grab this package and ok I can see it but it has ProjectName.csproj.zip rather then ProjectName.zip dont know if this is a problem.

xxxx\Package => Artifacts

Then my last step is  command line script:
"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe"
-dest:auto,wmsvc="xxxxx",UserName='yyy',Password='aaaa',AuthType='Basic' -allowUntrusted

when the script is running it give me an error:

[14:09:33][Step 6/6] More Information: Object of type 'package' and path 'Artifacts\ProjectName.csproj.zip' cannot be created.  Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_EXCEPTION_WHILE_CREATING_OBJECT.
[14:09:33][Step 6/6] Error: The Zip package 'Artifacts\ProjectName.csproj.zip' could not be loaded.
[14:09:33][Step 6/6] Error: Could not find a part of the path 'Artifacts\ProjectName.csproj.zip'.

[14:09:33][Step 6/6] Error count: 1.

Could you pls help me with this?

Best regards.

1 comment
Comment actions Permalink

Answer was simple,
artifacts are genereted at the end of a build when I wanted to have my deployments as last build step, so it couldn't find artifacts.


Please sign in to leave a comment.