VSTS:目录'd:\ a \ 1 \ a'为空.不会添加任何东西来构建工件“放置" [英] VSTS: Directory 'd:\a\1\a' is empty. Nothing will be added to build artifact 'drop'
问题描述
我正在VSTS中建立我的第一个版本,我不得不问一些关于SO的问题. 现在,我已经能够还原nuget包并构建我的项目,但是现在我必须确保将工件复制到正确的位置. 我的上次构建尝试由于以下原因而失败:目录'd:\ a \ 1 \ a'为空.不会添加任何东西来构建工件放置". 我的构建定义为;
I am making my first build in VSTS and I have had to ask a number of questions on SO. I have now been able to restore nuget packages and build my project but now I have to ensure the artifacts are copied to the right place. My last build attempt failed for this reason: Directory 'd:\a\1\a' is empty. Nothing will be added to build artifact 'drop'. My build is defined as;
复制文件
.Net Core版本;
The .Net Core build;
然后发布;
从构建中我得到了这个错误;
And from the build I get this error;
Directory 'd:\a\1\a' is empty. Nothing will be added to build artifact 'drop'.
我该如何解决?
推荐答案
首先,删除Properties.EF6(/t:;Properties.EF6;Sir.Domain)之前的"; ".
First, remove ";" before Properties.EF6 (/t:;Properties.EF6;Sir.Domain).
注意:如果Sir.WebUI依赖于Properties.EF6,Sir.Domain,Sir.EF6和StandardClassLibrary,则只需要构建Sir.WebUI项目即可.
Note: If Sir.WebUI dependency on Properties.EF6, Sir.Domain, Sir.EF6 and StandardClassLibrary, you just need to build Sir.WebUI project.
第二,对于.Net Core任务,将 build 命令更改为发布,参数为 -o $(build.artifactstagingdirectory)\ SIR
Secondly, for .Net Core task, change build command to publish and arguments is -o $(build.artifactstagingdirectory)\SIR.
第三,删除复制文件任务(不需要将文件复制到工件).
Thirdly, remove Copy Files task (do not need to copy files to artifact).
这篇关于VSTS:目录'd:\ a \ 1 \ a'为空.不会添加任何东西来构建工件“放置"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!