51

コンピューター名を変更したところ、Visual Studio 2012 で TFS ワークスペースが壊れてしまいました。

入力すると:

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.

だから私の質問は:

  1. ワークスペースでコンピューター名を更新するには?
  2. 「realowner@test.com」として登録された新しい電子メールがあるにもかかわらず、TFS がワークスペースに「wrongowner@test.com」を表示するのはなぜですか?
4

11 に答える 11

49

サイドキックをインストールしました。この問題では機能しませんでしたが、これは機能しました:

C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE>tf workspaces /updateComputerName:OldComputerName /s:"https://tfsServerName"
于 2013-12-12T19:01:06.610 に答える
8

これを 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

これが誰かの時間を節約することを願っています!

于 2018-03-25T03:35:23.983 に答える
2

コマンド プロンプトを開き、次のように入力します。

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE

ここに画像の説明を入力

資格情報を使用して次のコードを入力します

tf ワークスペース /updateComputerName:OldComputerName /s:" https://tfsServerName "

CMD プロンプトで

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE>tf ワークスペース /updateComputerName:OldComputerName/s:" https://tfsServerName "

于 2016-12-20T06:05:58.190 に答える
0

私にとってうまくいったのはタイピングでした

tf workspaces /updateComputerName:MyOldComputerName /collection:"anything".visualstudios.com/DefaultCollection/
于 2015-08-02T09:55:07.960 に答える
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

それが役立つことを願っています。

于 2015-06-18T06:45:09.110 に答える