从TFS提取源代码时,我们间歇性地收到此错误:
2017-03-23T23:49:31.0591599Z ##[section]Starting: Build solution [SOLUTION-NAME].sln
2017-03-23T23:49:31.0591599Z ==============================================================================
2017-03-23T23:49:31.0591599Z Task : Visual Studio Build
2017-03-23T23:49:31.0591599Z Description : Build with MSBuild and set the Visual Studio version property
2017-03-23T23:49:31.0591599Z Version : 1.113.0
2017-03-23T23:49:31.0591599Z Author : Microsoft Corporation
2017-03-23T23:49:31.0591599Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613727)
2017-03-23T23:49:31.0591599Z ==============================================================================
2017-03-23T23:49:31.6529233Z Unable to determine the workspace. You may be able to correct this by running 'tf workspaces /collection:TeamProjectCollectionUrl'.
2017-03-23T23:49:31.8872843Z ##[error]Exit code 100 returned from process: file name 'tf', arguments 'vc resolvePath "$\My Development\Trunk\src\Rostering\trunk\[SOLUTION-NAME].sln" /loginType:OAuth /login:.,******** /noprompt'.
知道导致此问题的原因是什么?发生这种情况时,我们看不到明确的模式。我们的构建服务器运行24/7。它似乎更有可能在一天的首次构建中发生。
最佳答案
该问题可能与工作空间有关,您可以尝试使用解决方案Error When Setting Clean = True on Windows
当根源文件夹(例如
_work \ 1 \ s)未映射-即工作空间不包含根映射。
一个不好的解决方法是为所有人设置一个变量build.clean。