VSTS: Directory 'd:\a\1\a' is empty. Nothi

2019-04-18 13:07发布

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; enter image description here

The Copy Files enter image description here

The .Net Core build; enter image description here

And the publish; enter image description here

And from the build I get this error;

Directory 'd:\a\1\a' is empty. Nothing will be added to build artifact 'drop'.

How do I fix this?

1条回答
姐就是有狂的资本
2楼-- · 2019-04-18 13:43

First, remove ";" before Properties.EF6 (/t:;Properties.EF6;Sir.Domain).

Note: If Sir.WebUI dependency on Properties.EF6, Sir.Domain, Sir.EF6 and StandardClassLibrary, you just need to build Sir.WebUI project.

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).

查看更多
登录 后发表回答