2015-02-24 23 views
3

我在Visual Studio Team Services雲TFS上承載我的項目。我試圖運行一些TFS命令行(特別是this),但我並沒有走得太遠。我相信問題很可能是URL的格式。我的命令看起來像這樣(換行符增加了可讀性):如何針對我的Visual Studio Team Services項目運行TFS命令行?

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE> 
tf status itemspec 
/collection:"http://MYACCOUNT.visualstudio.com/DefaultCollection" 
/login:MYEMAIL 

錯誤我在響應得到如下:

TF31002: Unable to connect to this Team Foundation Server: 
http://MYACCOUNT.visualstudio.com/DefaultCollection. 
Team Foundation Server Url: 
http://MYACCOUNT.visualstudio.com/DefaultCollection. 

Possible reasons for failure include: 
- The name, port number, or protocol for the Team Foundation Server is incorrect . 
- The Team Foundation Server is offline. 
- The password has expired or is incorrect. 

Technical information (for administrator): 
The remote server returned an error: (404) Not Found. 

我已經與我的密碼嘗試過太,但響應沒有什麼不同。我發現this,但它根本沒有幫助我。有沒有人能夠在Visual Studio Team Services上針對TFS運行命令?

回答

-2

我以前有同樣的問題,但我得到了解決方案here。希望能幫助到你。

+0

謝謝。這是一個有趣的閱讀,但沒有爲我解決它。我不確定那裏的建議是否與Visual Studio Online相關,但是當試圖訪問我的VS帳戶的CheckAuthentication服務時,我得到了404'd。 – bubbleking 2015-02-24 21:16:36

3

請仔細檢查網址。所有Visual Studio Team Services的URL都是https,而不是http。至少,你的項目集URL應該是:

https://MYACCOUNT.visualstudio.com/DefaultCollection

+0

謝謝。我的意思是提到我也嘗試了https。兩種情況下的錯誤都是一樣的。 – bubbleking 2015-02-24 20:57:00

1

如果您正在使用HTTPS作爲埃德提到,那麼你就無法進行身份驗證。不要使用/ login選項。當連接到你的團隊服務帳戶時,Tf.exe將彈出與VS一樣的認證對話框。您需要使用Microsoft帳戶登錄(除非您將Azure Active Directory鏈接到您的Team Services帳戶,然後它就是您的AAD標識)。我在我的工作帳戶上運行了tf.exe以進行仔細檢查,並且能夠登錄(在我的情況下需要雙因素驗證 - 全部由auth對話處理,並且我沒有使用/ login選項)。

相關問題