Get latest revision from Visual Studio Online through code - TF30063

一曲冷凌霜 提交于 2019-12-25 08:27:55

问题


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

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.


回答1:


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.

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.

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:

  • The cross-platform TFS command-line client (Team Explorer Everywhere)
  • Your own program that provides these credentials (like this one)


来源:https://stackoverflow.com/questions/22233268/get-latest-revision-from-visual-studio-online-through-code-tf30063

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!