使用命令行连接到 Team Foundation Service [英] Connecting to Team Foundation Service with command line

查看:26
本文介绍了使用命令行连接到 Team Foundation Service的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用命令行连接到云中的 tfs,但我无法进行身份验证.

I am trying to connect to tfs in the cloud with the command line but i don't manage to authenticate.

我使用的是Microsoft Visual Studio 11.0\Common7\IDE\TF.exe"

I'm using "Microsoft Visual Studio 11.0\Common7\IDE\TF.exe"

我正在使用 https 中描述的备用凭据://tfs.visualstudio.com/en-us/home/news/2012/aug-27/

像这样:

tf workspaces 
   /computer:* 
   /format:brief 
   /collection:https://*****.visualstudio.com/DefaultCollection /login:****,****

但我明白了... TF30063:您无权访问 https://*****.visualstudio.com/DefaultCollection.

我错过了什么吗?

推荐答案

我已经用我的在线 tfs 帐户对此进行了测试,能够重现您遇到的错误.

I have tested this with my online tfs account able to reproduce the error you got.

步骤

  1. 我尝试了连接正常的命令并获取了工作区信息.
  2. 我关闭了所有浏览器 VS 并清除了所有浏览器缓存.
  3. 打开 VS 并通过团队资源管理器连接并提供错误的凭据
  4. 关闭 VS 并尝试命令得到错误 TF30063
  5. 打开 VS 并使用正确的凭据连接到 visualstudio.com tfs 并关闭 VS
  6. 再次尝试该命令,它起作用了
  7. 尝试使用不正确凭据的命令仍然有效:)

结论

我认为凭据会被缓存,而我们在命令行中提供的凭据会被团队基础服务忽略.

I think the credentials are cached what ever credential we supply in the command line is ignored for team foundation service.

进一步搜索将我带到了这个 link 我认为它解释了同样的情况

Further search took me to this link and I think it explains the same situation

对于本地 TFS

tf workspaces/login 中提供的凭据:100% 有效

The credentials provided in tf workspaces /login: 100% in effect

这篇关于使用命令行连接到 Team Foundation Service的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆