VSTS托管代理无法获取,因为目录已存在 [英] VSTS hosted agent Unable to get because a directory already exists

查看:64
本文介绍了VSTS托管代理无法获取,因为目录已存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 


我已经设置了VSTS项目并选择了托管代理来构建项目,第一次构建失败,我在构建定义中更新了一些设置。每次构建项目失败后,任务"Get Sources"失败,错误"无法获取
,因为目录已存在"。你能帮我解决这个问题吗?


问候,


RK




Radhakrishna

解决方案

您好RK Naik,


感谢您在此发帖。


>>> VSTS托管代理无法获取,因为目录已存在


您是否尝试在获取源任务中将选项Clean设置为true并将选项清除为Source目录?使用此设置,VSTS将在获取源文件之前清理源目录:



由于这个论坛是关于MSBuild的,因为你的问题与VSTS有关,如果上面的回答没有帮助你,我建议你可以打开一个新线程
stackoverflow  带有VSTS标记。 


希望这有帮助。


Hi 

I have set up VSTS project and selected hosted agent to build the project, the first-time build failed, I updated few settings in the build definition. After this failure every time I build the project, task "Get Sources" fails with error "Unable to get because a directory already exists". Can you anyone please help me resolve this issue?

Regards,

RK


Radhakrishna

解决方案

Hi RK Naik,

Thanks for posting here.

>>>VSTS hosted agent Unable to get because a directory already existsa

Have you try to set the option Clean to true and Clean options to Source directory on the get source task? With this settings, VSTS will clean the source directory before get the source files:

Since this forum is about MSBuild, as you question is more related to VSTS, if above answer not help you, I suggest that you can open a new thread on the stackoverflow with VSTS tag. 

Hope this helps.


这篇关于VSTS托管代理无法获取,因为目录已存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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