Bastien Vandamme
Bastien Vandamme

Reputation: 18485

Why is my MSBuild publishing as a zip file?

Why is my Azure DevOps CI build publishing my code as a zip archive?

what am I doing wrong?

enter image description here

enter image description here

This generates a WebApi.zip. I would like to have folders because I want to copy and create folder in my structure.

Upvotes: 1

Views: 830

Answers (1)

Doris Lv
Doris Lv

Reputation: 3398

Please use FileSystem rather than PackageLocation like below:

/p:SkipInvalidConfigurations=true /p:DeployOnBuild=true /p:WebPublishMethod=FileSystem /p:publishUrl="$(build.artifactstagingdirectory)\\" /p:DeployDefaultTarget=WebPublish

Upvotes: 2

Related Questions