VSTS:目录 'd:a1a' 为空.不会添加任何内容来构建工件“drop" [英] VSTS: Directory 'd:a1a' is empty. Nothing will be added to build artifact 'drop'

查看:33
本文介绍了VSTS:目录 'd:a1a' 为空.不会添加任何内容来构建工件“drop"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 VSTS 中构建我的第一个版本,我不得不就 SO 提出一些问题.我现在已经能够恢复 nuget 包并构建我的项目,但现在我必须确保将工件复制到正确的位置.由于这个原因,我的最后一次构建尝试失败:目录 'd:a1a' 为空.不会添加任何内容来构建工件drop".我的构建定义为;

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:a1a' 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:a1a' is empty. Nothing will be added to build artifact 'drop'.

我该如何解决这个问题?

How do I fix this?

推荐答案

首先,去掉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命令改为publish,参数为-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:a1a' 为空.不会添加任何内容来构建工件“drop"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆