我重命名了我的计算机名,现在我的TFS工作区在Visual Studio 2012中被破坏了。
当我输入:
tf workspaces /computer:ABOTONJIC-PC /owner:* /format:detailed
Workspace : ABOTONJIC-PC
Owner : wrongowner@test.com
Computer : ABOTONJIC-PC
Comment :
Collection : netuse.visualstudio.com\DefaultCollection
Permissions: Private
Location : Local
File Time : Current
但我需要:
Owner : realowner@test.com
Computer : NEW-PC
然后我尝试:
tf workspaces /updateComputerName:ABOTONJIC-PC /collection:netuse.visualstudio.com/DefaultCollection
No workspace matching *;wrongowner@test.com on computer NEW-PC found in Team Foundation Server netuse.visualstudio.com/DefaultCollection.
所以我的问题是:
答案 0 :(得分:46)
答案 1 :(得分:44)
我安装了Sidekicks。它不适用于这个问题,但确实如此:
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE>tf workspaces /updateComputerName:OldComputerName /s:"https://tfsServerName"
答案 2 :(得分:28)
我有同样的问题,也是VisualStudio.com帐户。
我已经尝试了提示告诉我的内容:
像这样:
tf workspaces /updateComputerName:MyOldComputerName
但我回来了:
每当/ updateComputerName时,必须指定/ collection选项 或/ updateUserName已指定。
为了获得我跑的集合名称:
tf workspaces
列出了我的收藏品,我得到了我的收藏品的名称(... myusername.visualstudio.com ...)
然后我跑了:
tf workspaces /collection:http://myusername.visualstudio.com /updateComputerName:MyOldComputerName
当我得到这个时,我没有工作:
TF31002:无法连接到此Team Foundation Server: http://myusername.visuals tudio.com/defaultcollection。团队基金会 服务器网址:http://myusername.visualstudio.com/defaultcollection。
失败的可能原因包括: - Team Foundation Server的名称,端口号或协议不正确 - Team Foundation Server处于脱机状态。 - 密码已过期或不正确。
技术信息(针对管理员):远程服务器已返回 错误:(404)未找到。
然后我注意到我输入的是http
而不是https
,已更正,重试并且有效!
答案 3 :(得分:15)
在
// ==UserScript==
// @name c:geo LangFix Deutsch BETA
// @include https://www.geocaching.com/*/*/*
// @include https://www.geocaching.com/*/*
// @include https://www.geocaching.com/*
// @include https://www.geocaching.com
// @include http://www.geocaching.com/*/*/*
// @include http://www.geocaching.com/*/*
// @include http://www.geocaching.com/*
// @include http://www.geocaching.com
// @exclude http://www.geocaching.com/account/messagecenter
// @exclude https://www.geocaching.com/map/*
// @exclude https://www.geocaching.com/map
// @version 1.2
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @grant GM_xmlhttpRequest
// ==/UserScript==
var TargetLink = $('a[href*="LocaleList$ctl04$uxLocaleItem"]');
var LanguageSwitch = $("div.LocaleText:contains('Choose Language')");
if (TargetLink.length && LanguageSwitch.length)
window.location.assign (TargetLink[0].href);
以管理员命令
在CMD中运行C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE>
答案 4 :(得分:6)
要在Visual Studio 2017中使用此功能,请使用以下(新位置)
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\TF.exe workspaces /collection:https://youraccountnamehere.visualstudio.com /updateComputerName:OLD-COMPUTERNAME
希望这能节省一些时间!
答案 5 :(得分:4)
看看这个link
Vaccano说:这个命令起到了作用:
tf workspaces /updateComputerName:MyOldComputerName
/s:"http://MyServer:8080/tfs/MyCollection"
必须从我想要分配工作区的计算机上运行(这就是它获取新计算机名称的方式。 >
答案 6 :(得分:3)
tf workspaces /updateComputerName:REPLCATEOLDCOMPUTERNAMEHERE /collection:REPLACETFSURL
example:
tf workspaces /updateComputerName:DESKTOP-42CLO97 /collection:https://testuserxx.visualstudio.com
VS2017
答案 7 :(得分:2)
打开命令提示符并键入如下所示
C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE
并使用您的凭据输入以下代码
tf workspaces / updateComputerName:OldComputerName / s的: “https://tfsServerName”
在CMD提示中
C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE> tf 工作区 / updateComputerName:OldComputerName /秒: “https://tfsServerName”
答案 8 :(得分:1)
答案 9 :(得分:0)
打开visual studio命令提示符并键入以下命令
tf workspaces /updateComputerName:oldcomputername /s:http://tfservername:port#/tfs
例如
tf workspaces /updateComputerName:abc-PC /s:http://mytfsserver:8080/tfs
您可以在运行上述命令之前和之后运行以下命令,这只是检查计算机上的工作区信息。
请记住: 在客户端计算机(已重命名)上运行所有这些命令,而不是在安装了TFS服务器的计算机上运行。
如果还更改了用户名,请运行以下命令
tf workspaces /updateUserName:oldUserName /s:http://mytfsserver:8080/tfs
希望它会有所帮助。
答案 10 :(得分:0)
对我有用的是输入
tf workspaces /updateComputerName:MyOldComputerName /collection:"anything".visualstudios.com/DefaultCollection/