我们运行TFS 2008和Visual Studio 2010B2(与任何Beta一样,错误占主导地位)。
以下是给出的错误(来自构建日志):
Task "DeleteWorkspaceTask" DeleteWorkspaceTask TeamFoundationServerUrl="http://dev-svr:8080/" BuildUri="vstfs:///Build/Build/1679" Name="**ALICE_3_**" DeleteLocalItems=True TF14061: The workspace **ALICE_3_**;HELLO\TFSservice does not exist. Done executing task "DeleteWorkspaceTask". Task "DeleteWorkspaceTask" skipped, due to false condition; ( '$(SkipInitializeWorkspace)'!='true' and ('$(CleanCompilationOutputOnly)' == 'true' or '$(SkipClean)' == 'true') ) was evaluated as ( 'false'!='true' and ('false' == 'true' or 'false' == 'true') ). Using "CreateWorkspaceTask" task from assembly "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\Microsoft.TeamFoundation.Build.Tasks.VersionControl.dll". Task "CreateWorkspaceTask" CreateWorkspaceTask TeamFoundationServerUrl="http://dev-svr:8080/" BuildUri="vstfs:///Build/Build/1679" Name="**ALICE_3_**" BuildDirectory="c:\builds\science\SCIENCE\AB" SourcesDirectory="c:\builds\science\SCIENCE\AB\Sources" Comment="Workspace created by Team Build" C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(796,5,796,5): error : The path c:\builds\science\SCIENCE\AB\Sources is already mapped in workspace **ALICE_3**. [c:\builds\science\SCIENCE\AB\BuildType\TFSBuild.proj]
任何意见都会受到赞赏,因为这个发展领域不是我的专长。
此致 马特
答案 0 :(得分:0)
来自this Stack Overflow question:
使用命令行实用程序tf。
您可以获取所有工作区的列表 通过启动Visual Studio命令 提示并使用以下内容 命令:
c:\>tf workspaces /owner:*
您应该会看到问题工作区 在列表中以及它的所有者。
您可以使用删除工作区 以下命令:
C:\>tf workspace /delete /server:BUILDSERVER WORKSPACENAME;OWNERNAME
答案 1 :(得分:0)
在深入研究后,看起来好像问题出在其他地方:
Task "DeleteWorkspaceTask"
DeleteWorkspaceTask TeamFoundationServerUrl="http://dev-svr:8080/" BuildUri="vstfs:///Build/Build/1679" Name="**ALICE_3_**" DeleteLocalItems=True
TF14061: The workspace **ALICE_3_**;HELLO\TFSservice does not exist.
Done executing task "DeleteWorkspaceTask".
Task "DeleteWorkspaceTask" skipped, due to false condition; ( '$(SkipInitializeWorkspace)'!='true' and ('$(CleanCompilationOutputOnly)' == 'true' or '$(SkipClean)' == 'true') ) was evaluated as ( 'false'!='true' and ('false' == 'true' or 'false' == 'true') ).
Using "CreateWorkspaceTask" task from assembly "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\Microsoft.TeamFoundation.Build.Tasks.VersionControl.dll".
Task "CreateWorkspaceTask"
CreateWorkspaceTask TeamFoundationServerUrl="http://dev-svr:8080/" BuildUri="vstfs:///Build/Build/1679" Name="**ALICE_3_**" BuildDirectory="c:\builds\science\SCIENCE\AB" SourcesDirectory="c:\builds\science\SCIENCE\AB\Sources" Comment="Workspace created by Team Build"
C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(796,5,796,5): error : The path c:\builds\science\SCIENCE\AB\Sources is a
已在工作区 ALICE_3 中映射。 [C:\建立\科学\科学\ AB \ BuildType \ TFSBuild.proj]
我最初的想法是构建试图删除一个尚未存在的工作空间,但是它似乎确实存在,并且由于映射错误而无法删除构建的先前版本。关于我可以改变这个的任何想法?
谢谢, 马特
答案 2 :(得分:0)
如果更改构建服务器帐户,TFS 2010仍会发生这种情况。在这种情况下,最好清除旧工作区。