4
votes

I am running the below MSBUILD command with the arguments, this creates a package.zip file fine.

MSBUILD /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation=$(Build.ArtifactStagingDirectory)\

The trouble is that the package is created with a very long path . Is there a way to reduce the path and set it so that i can control the zip file creation?

1

1 Answers

1
votes

You can simply assign a package location that you want for argument /p:PackageLocation, such as:

/p:PackageFileName=some\package.zip