本文介绍了TFS中的空构建工件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好



我在TFS中有一个构建定义,步骤如下:



  • NuGet restore
  • Visual Studio Build
  • Publish Build Artifacts


MSBuild参数in Visual Studio Build步骤如下:

 / p:DeployOnBuild = true / p:WebPublishMethod = Package / p:PackageAsS ingleFile = true / p:SkipInvalidConfigurations = true / p:PackageLocation =" $(Build.StagingDirectory)\\" 

构建成功,但当我查看文物时,它是空的 


log:


2017-04-04 ## [警告]目录"c:\\ \\ item \_work \\\\ a"为空。不要添加到生成的"放弃"项目内容中。



TFS:2017Express(版本15.112.26307.0)


服务器:Windows Server2012 R2标准版


提前致谢!

解决方案

Hi

I have a build definition in TFS with the following steps:

  • NuGet restore
  • Visual Studio Build
  • Publish Build Artifacts

The MSBuild arguments in the Visual Studio Build step are as follows

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

The build succeeds, but when I look in the Artifacts, it's  empty 

log:

The 2017-04-04 ##[warning] directory "c:\agent\_work\2\a" is empty. Not to be added to the generated "drop" the content of the project.

TFS: 2017Express(Version 15.112.26307.0)

Server:Windows Server2012 R2 Standard

Thanks in advance!

解决方案


这篇关于TFS中的空构建工件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 05:30