Why does my TFS build waste time eventhough there is no Drops folder?

≯℡__Kan透↙ 提交于 2019-12-05 06:15:35

I had the same problem and the solution above does not help since Dylan Smith does not explain how to stop the warning when there is no Drops folder (empty or not), which is the issue in the original question. My "hack" solution was to create dummy Drops folder in the root TFS project and cloak it.

Found a workaround for this: First, add a cloak directive to your non-existent Drops folder:

Cloak | $[solution name]\Drops

save this, it won't complain. Queue a build, and let it fail because 'Drops is unmapped'. Go back to the Build definition, and remove your cloaked Drops folder, then save it. For me, I no longer get the warning. Hopefully this works for other folk!

It is an issue because that means TFS Build is downloading not only your source code but all the drops each time. Normally that is a waste, as it doesn't need to download the drops folder. In your case the Drops folder may be empty, but the warning logic isn't smart enough to realize that.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!