TFS 2015 Visual Studio Build - Package .zip not being created

前端 未结 3 1077
花落未央
花落未央 2021-01-16 01:30

I\'m trying to build my solution and package up the web app into a web deploy (.zip) package to be deployed.

I\'ve added the Visual Studio Build ste

3条回答
  •  伪装坚强ぢ
    2021-01-16 02:31

    I have tried the same on VS2015 MVC web application using VSTS and TFS 2015.2.1 both. I had to do a slight change to the Build arguments in Visual Studio build. That is removing the trailing "\" in /p:PackageLocation="$(build.artifactstagingdirectory)\".

    Here is the argument I passed to Visual studio build step

    /p:DeployOnBuild=True /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:PackageLocation="$(build.artifactstagingdirectory)"
    

    Then I used Copy and Published Build Artifacts (Deprecated in VSTS you should use Copy task and Publish task instead of this task) as shown below

    This gives me output as below.

提交回复
热议问题