Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP .Net project deploy package created under very long path

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?

like image 341
Angshuman Avatar asked Nov 08 '22 04:11

Angshuman


1 Answers

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

/p:PackageFileName=some\package.zip
like image 128
Cece Dong - MSFT Avatar answered Nov 14 '22 22:11

Cece Dong - MSFT