We have an azure pipeline which produces a zip artifact in $(build.artifactstagingdirectory). Later we extract this and deploy to target folder. This works fine with websites. The msbuildargs looks like below :-
msbuildArgs : '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
We have a windows service which is not generating any zip artifact. After following article. I added /p:OutDir="$(build.stagingDirectory) in msbuildargs, Now I can see the files, but no zip file. Which we actually use.
msbuildArgs : '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)" /p:OutputPath="$(Build.ArtifactStagingDirectory)"'
is there any csproj settings for zip artifact? any specific setting for windows service ? Could not find more documents for PackageAsSingleFile.