UNC build path in Team build (TFS)

风格不统一 提交于 2019-12-11 06:49:03

问题


I am pretty new to TFS so I have this problem when I want to set a destination directory to my build.

Every time I launch the build, it dramatically fails and says "couldn't find \xxxxxxx\yyyyy\zzzz".

I think that my UNC path is wrong.

Let's assume that my drop directory (destination directory) is "C:\Project\" and my computer name is "lemoos-PC", what would the equivalent of my path in UNC notation?

I've tried these : \\lemoos-PC\C\Project\

\\lemoos-PC\C:\Project\

\\lemoos-PC\Project\

but they don't seem to work.

Thanks in advance .


回答1:


In your case, you should be able to use the following as your UNC drop location:

\\lemoos-PC\C$\Project

C$ is a special 'administrative' share that is normally already available on your machine. The $ makes it a hidden share that prevents other people from browsing to \\lemoos-PC and seeing it listed. Other people can only access it if they both a) know the name of the share and b) have administrative access to the computer.




回答2:


The UNC path is really a path to a shared network folder and it would have the format

\\computername\sharename\directory\in\share

so it would depend on what the name of your network share is, not necessarily what your local path is. If you for example share your C:\Project folder as Project, the path would be

\\lemoos-PC\Project\


来源:https://stackoverflow.com/questions/8955581/unc-build-path-in-team-build-tfs

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