通过代码从 Visual Studio Online 获取最新版本 - TF30063 [英] Get latest revision from Visual Studio Online through code - TF30063

查看:36
本文介绍了通过代码从 Visual Studio Online 获取最新版本 - TF30063的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从我们的 Visual Studio Online 存储库创建一个自动获取最新"例程.

I am trying to create an automatic "get latest"-routine from our Visual Studio Online repository.

但是,我尝试了许多示例,但它们都返回:TF30063:您无权访问 https://ourPath.visualstudio.com/DefaultCollection/

However, I have tried a number of examples but they all return: TF30063: You are not authorized to access https://ourPath.visualstudio.com/DefaultCollection/

我什至尝试过这个 控制台应用程序,但它仍然返回相同的错误.

I even tried this console app, but it still returns the same error.

我可以使用凭据通过浏览器登录.我对如何连接和获取最新代码的想法不多了.

I can login through the browser using credentials. I am running out of ideas on how to connect and get the latest code.

推荐答案

如果您可以使用这些凭据通过浏览器登录,那么它们就不是 您引用的问题.

If you can log in through the browser using those credentials, then they are not the alternate credentials that should be used in the answer to the question you referenced.

您在浏览器中输入的凭据是您的 Microsoft 帐户(以前称为您的 Live ID).这是一种闪亮的基于浏览器的身份验证体验,与 /login 标志到 tf.exe 不兼容.

The credentials you typed in the browser is your Microsoft Account (formerly known as your Live ID). This is a shiny browser-based authentication experience that is incompatible with the /login flag to tf.exe.

相反,您需要为您的帐户设置备用凭据.但是,这不能让您使用 tf.exe,因为它不支持它们.您将需要使用:

Instead, you need to set up alternate credentials for your account. However, this does not enable you to use tf.exe, as it does not support them. You will need to use either:

这篇关于通过代码从 Visual Studio Online 获取最新版本 - TF30063的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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